• Andi Kleen's avatar
    x86: fix build warnings in real mode code · 1b72691c
    Andi Kleen authored
    This recent patch
    
    commit c3965bd1
    Author: Paul Jackson <pj@sgi.com>
    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: default avatarAndi Kleen <ak@linux.intel.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    1b72691c
Name
Last commit
Last update
..
compressed Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
a20.c Loading commit data...
apm.c Loading commit data...
bitops.h Loading commit data...
boot.h Loading commit data...
cmdline.c Loading commit data...
code16gcc.h Loading commit data...
copy.S Loading commit data...
cpu.c Loading commit data...
cpucheck.c Loading commit data...
edd.c Loading commit data...
header.S Loading commit data...
install.sh Loading commit data...
main.c Loading commit data...
mca.c Loading commit data...
memory.c Loading commit data...
mkcpustr.c Loading commit data...
mtools.conf.in Loading commit data...
pm.c Loading commit data...
pmjump.S Loading commit data...
printf.c Loading commit data...
setup.ld Loading commit data...
string.c Loading commit data...
tty.c Loading commit data...
version.c Loading commit data...
vesa.h Loading commit data...
video-bios.c Loading commit data...
video-mode.c Loading commit data...
video-vesa.c Loading commit data...
video-vga.c Loading commit data...
video.c Loading commit data...
video.h Loading commit data...
voyager.c Loading commit data...