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>
This commit is contained in:
Elyes HAOUAS 2019-06-26 21:05:17 +02:00 committed by Nico Huber
parent 8d7d98166e
commit db6c3f25f0
1 changed files with 2 additions and 2 deletions

View File

@ -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"