summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorDavid Laight <david.laight.linux@gmail.com>2026-08-03 10:47:01 +0100
committerBorislav Petkov (AMD) <bp@alien8.de>2026-09-10 10:40:22 -0700
commitf65d38155aef069c897a64643a03db237dd1e0c8 (patch)
tree4cc602cb247fcf1c32e5a97b25a7fa31954fd313 /scripts/basic
parent5a5d26f2cfe13467166219f6bf58099326912ddb (diff)
downloadlinux-stable-f65d38155aef069c897a64643a03db237dd1e0c8.tar.gz
linux-stable-f65d38155aef069c897a64643a03db237dd1e0c8.zip
x86/div64: Fix addition of large constants in mul_u64_add_u64_div_u64()
Adding constants over 2^31 fails to compile because the ADD instruction only supports 32bit signed immediates. Replace the "irm" constraint with "erm" so that the compiler loads large constants into a register. Found by a patch to drivers/iio/frequency/ad9910.c [ bp: Massage commit message. ] Fixes: 6480241f31f5 ("lib: add mul_u64_add_u64_div_u64() and mul_u64_u64_div_u64_roundup()") Signed-off-by: David Laight <david.laight.linux@gmail.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: H. Peter Anvin <hpa@zytor.com> Link: https://patch.msgid.link/20260803094702.3852-2-david.laight.linux@gmail.com
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions