diff options
| author | 2026-10-09 09:45:54 +0200 | |
|---|---|---|
| committer | 2026-10-13 16:31:17 +0200 | |
| commit | f82830f5607ba19978d1fc6a7a978cefb9843cfc (patch) | |
| tree | d0cc649ed148ceac2dfd21016c42aa6b4e3a558b /scripts/Makefile.thinlto | |
| parent | char: xillybus: Avoid possible bandwidth inefficiency (diff) | |
char: xillybus: Use unsigned arithmetic for jiffies differences
Change the type of jiffies-related deadline variables from long to
unsigned long, and remove unnecessary casts when computing time
remaining as deadline - jiffies.
No functional change is expected: although signed overflow is undefined
in the C standard, processors perform the calculation correctly in
practice. Using unsigned arithmetic is nevertheless the proper way to
handle jiffies differences.
Assisted-by: Deepseek:v4-pro Kimi:K2.6 ChatGPT:GPT-5.5 Claude:Sonnet-4.6
Signed-off-by: Eli Billauer <eli.billauer@gmail.com>
Link: https://patch.msgid.link/20261009074557.19996-5-eli.billauer@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
