diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-01-09 00:27:43 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-01-09 00:27:43 +0300 |
commit | 41a80ca4ae2de711e04b399f614f676daf72d938 (patch) | |
tree | 8a51536412e757792e331dfd7362e346bd3a87b5 /arch/x86/lib | |
parent | 6e0b939180fcd2658d2eb8e5bfa4192d1bc32fad (diff) | |
parent | f789383fa34a266d0c1a76f272043a15a8edf733 (diff) | |
download | linux-41a80ca4ae2de711e04b399f614f676daf72d938.tar.xz |
Merge tag 'x86_misc_for_v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull misc x86 updates from Borislav Petkov:
- Add an informational message which gets issued when IA32 emulation
has been disabled on the cmdline
- Clarify in detail how /proc/cpuinfo is used on x86
- Fix a theoretical overflow in num_digits()
* tag 'x86_misc_for_v6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/ia32: State that IA32 emulation is disabled
Documentation/x86: Document what /proc/cpuinfo is for
x86/lib: Fix overflow when counting digits
Diffstat (limited to 'arch/x86/lib')
-rw-r--r-- | arch/x86/lib/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/lib/misc.c b/arch/x86/lib/misc.c index 92cd8ecc3a2c..40b81c338ae5 100644 --- a/arch/x86/lib/misc.c +++ b/arch/x86/lib/misc.c @@ -8,7 +8,7 @@ */ int num_digits(int val) { - int m = 10; + long long m = 10; int d = 1; if (val < 0) { |