Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[IA64] fix allmodconfig compilation breakage.

This patch fixes the following compilation error caused by recursive
inclusion of kernel.h which defines BUILD_BUG_ON().
In this case, the case it catches will be caught by the case
CONFIG_PARAVIRT=n, so removing it would not hurt compile time check
very much. So fix the breakage by removing it.

CC arch/ia64/kernel/asm-offsets.s
In file included from include/linux/bitops.h:17,
from include/linux/kernel.h:15,
from include/linux/sched.h:52,
from arch/ia64/kernel/asm-offsets.c:9:
arch/ia64/include/asm/bitops.h: In function 'set_bit':
arch/ia64/include/asm/bitops.h:47: error: implicit declaration of function 'BUILD_BUG_ON'

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>

authored by

Isaku Yamahata and committed by
Tony Luck
05f0ecbd edb91dc0

-2
-2
arch/ia64/include/asm/paravirt_privop.h
··· 445 445 register unsigned long ia64_intri_res asm ("r8"); \ 446 446 register unsigned long __reg asm ("r8") = (reg); \ 447 447 \ 448 - BUILD_BUG_ON(!__builtin_constant_p(reg)); \ 449 448 asm volatile (paravirt_alt_bundle(__PARAVIRT_BR, \ 450 449 PARAVIRT_TYPE(GETREG) \ 451 450 + (reg)) \ ··· 463 464 register unsigned long ia64_clobber1 asm ("r8"); \ 464 465 register unsigned long ia64_clobber2 asm ("r9"); \ 465 466 \ 466 - BUILD_BUG_ON(!__builtin_constant_p(reg)); \ 467 467 asm volatile (paravirt_alt_bundle(__PARAVIRT_BR, \ 468 468 PARAVIRT_TYPE(SETREG) \ 469 469 + (reg)) \