[LinuxPPS] 18 Aug 07:20 - x86: fix build warnings in real mode code
linuxpps: Andi Kleen <>
webmaster at enneenne.com
Wed Aug 20 00:00:07 CEST 2008
x86: fix build warnings in real mode code
This recent patch
commit c3965bd15118742d72b4bc1a290d37b3f081eb98
Author: Paul Jackson
Date: Wed May 14 08:15:34 2008 -0700
x86 boot: proper use of ARRAY_SIZE instead of repeated E820MAX constant
caused these new warnings during a normal build:
In file included from linux-2.6/arch/x86/boot/memory.c:17:
linux-2.6/include/linux/log2.h: In function '__ilog2_u32':
linux-2.6/include/linux/log2.h:34: warning: implicit declaration of function 'fls'
linux-2.6/include/linux/log2.h: In function '__ilog2_u64':
linux-2.6/include/linux/log2.h:42: warning: implicit declaration of function 'fls64'
linux-2.6/include/linux/log2.h: In function '__roundup_pow_of_two ':
linux-2.6/include/linux/log2.h:63: warning: implicit declaration of function 'fls_long'
I tried to fix them in log2.h, but it's difficult because the real mode
environment is completely different from a normal kernel environment. Instead
define an own ARRAY_SIZE macro in boot.h, similar to the other private
macros there.
Signed-off-by: Andi Kleen
Signed-off-by: Ingo Molnar
arch/x86/boot/boot.h
arch/x86/boot/memory.c
URL: http://gitweb.enneenne.com/?p=linuxpps;a=commit;h=1b72691ce35812ff865d778f303779e774d2b098
More information about the LinuxPPS
mailing list