HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/33817
Change subject: include/cpu/x86/mtrr: Fix return type ......................................................................
include/cpu/x86/mtrr: Fix return type
Change-Id: Ia328e1e5a79c2e7606961bb1b68c01db6b77da21 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/include/cpu/x86/mtrr.h 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/17/33817/1
diff --git a/src/include/cpu/x86/mtrr.h b/src/include/cpu/x86/mtrr.h index 49ed462..29256c8 100644 --- a/src/include/cpu/x86/mtrr.h +++ b/src/include/cpu/x86/mtrr.h @@ -120,7 +120,7 @@ /* 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 @@ /* 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"