diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2019-06-26 21:05:17 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-07-07 00:23:42 +0000 |
commit | db6c3f25f0d4b7fc0fd7aefb0b2442584a7f2c99 (patch) | |
tree | 835e04146ea01126fdec2863fc6244469d8a14c1 /src/include/cpu | |
parent | 8d7d98166e87cd5ac68d038110e9407b1730b1bb (diff) | |
download | coreboot-db6c3f25f0d4b7fc0fd7aefb0b2442584a7f2c99.tar.xz |
include/cpu/x86/mtrr: Fix return type
fms() and fls() returns an 'unsigned int'.
Change-Id: Ia328e1e5a79c2e7606961bb1b68c01db6b77da21
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33817
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include/cpu')
-rw-r--r-- | src/include/cpu/x86/mtrr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/cpu/x86/mtrr.h b/src/include/cpu/x86/mtrr.h index 49ed462952..29256c8d46 100644 --- a/src/include/cpu/x86/mtrr.h +++ b/src/include/cpu/x86/mtrr.h @@ -120,7 +120,7 @@ asmlinkage void soc_enable_mtrrs(void); /* fms: find most significant bit set, stolen from Linux Kernel Source. */ static inline unsigned int fms(unsigned int x) { - int r; + unsigned int r; __asm__("bsrl %1,%0\n\t" "jnz 1f\n\t" @@ -132,7 +132,7 @@ static inline unsigned int fms(unsigned int x) /* fls: find least significant bit set */ static inline unsigned int fls(unsigned int x) { - int r; + unsigned int r; __asm__("bsfl %1,%0\n\t" "jnz 1f\n\t" |