• Yoichi Yuasa's avatar
    MIPS: Fix bug.h MIPS build regression · 3592c3cd
    Yoichi Yuasa authored
    Commit: 37778088 [bug.h: need linux/kernel.h
    for TAINT_WARN.] breaks all MIPS builds.
    
      CC      arch/mips/kernel/machine_kexec.o
    In file included from include/linux/kernel.h:20:0,
                     from include/asm-generic/bug.h:35,
                     from /home/yuasa/src/linux/kernel/git/linux-2.6/arch/mips/include/asm/bug.h:41,
                     from /home/yuasa/src/linux/kernel/git/linux-2.6/arch/mips/include/asm/bitops.h:20,
                     from include/linux/bitops.h:22,
                     from include/linux/signal.h:38,
                     from include/linux/elfcore.h:5,
                     from include/linux/kexec.h:60,
                     from arch/mips/kernel/machine_kexec.c:9:
    include/linux/log2.h: In function '__ilog2_u32':
    include/linux/log2.h:34:2: error: implicit declaration of function 'fls' [-Werror=implicit-function-declaration]
    include/linux/log2.h: In function '__ilog2_u64':
    include/linux/log2.h:42:2: error: implicit declaration of function 'fls64' [-Werror=implicit-function-declaration]
    include/linux/log2.h: In function '__roundup_pow_of_two':
    include/linux/log2.h:63:2: error: implicit declaration of function 'fls_long' [-Werror=implicit-function-declaration]
    In file included from include/linux/bitops.h:22:0,
                     from include/linux/signal.h:38,
                     from include/linux/elfcore.h:5,
                     from include/linux/kexec.h:60,
                     from arch/mips/kernel/machine_kexec.c:9:
    /home/yuasa/src/linux/kernel/git/linux-2.6/arch/mips/include/asm/bitops.h: At top level:
    /home/yuasa/src/linux/kernel/git/linux-2.6/arch/mips/include/asm/bitops.h:615:19: error: static declaration of 'fls' follows non-static declaration
    include/linux/log2.h:34:9: note: previous implicit declaration of 'fls' was here
    In file included from /home/yuasa/src/linux/kernel/git/linux-2.6/arch/mips/include/asm/bitops.h:651:0,
                     from include/linux/bitops.h:22,
                     from include/linux/signal.h:38,
                     from include/linux/elfcore.h:5,
                     from include/linux/kexec.h:60,
                     from arch/mips/kernel/machine_kexec.c:9:
    include/asm-generic/bitops/fls64.h:18:28: error: static declaration of 'fls64' follows non-static declaration
    include/linux/log2.h:42:9: note: previous implicit declaration of 'fls64' was here
    In file included from include/linux/signal.h:38:0,
                     from include/linux/elfcore.h:5,
                     from include/linux/kexec.h:60,
                     from arch/mips/kernel/machine_kexec.c:9:
    include/linux/bitops.h:160:24: error: conflicting types for 'fls_long'
    include/linux/log2.h:63:16: note: previous implicit declaration of 'fls_long' was here
    cc1: all warnings being treated as errors
    
    make[2]: *** [arch/mips/kernel/machine_kexec.o] Error 1
    Signed-off-by: 's avatarYoichi Yuasa <yuasa@linux-mips.org>
    Cc: Geert Uytterhoeven <geert@linux-m68k.org>
    Cc: Paul Mundt <lethal@linux-sh.org>
    Cc: yuasa@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Cc: Linuxppc-dev <linuxppc-dev@ozlabs.org>
    Cc: Linux MIPS Mailing List <linux-mips@linux-mips.org>
    Cc: Linux-sh list <linux-sh@vger.kernel.org>
    Cc: Chris Zankel <chris@zankel.net>
    Patchwork: https://patchwork.linux-mips.org/patch/4000/Tested-by: 's avatarJohn Crispin <blogic@openwrt.org>
    Signed-off-by: 's avatarRalf Baechle <ralf@linux-mips.org>
    3592c3cd
Name
Last commit
Last update
Documentation Loading commit data...
arch Loading commit data...
block Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt/kvm Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
REPORTING-BUGS Loading commit data...