[POWERPC] disabling CONFIG_BUG breaks kernel compile

From: Keri Harris
Date: Sun Jun 01 2008 - 00:30:33 EST


A 'make randconfig' of the latest linux-next on powerpc caught a buglet where
disabling CONFIG_BUG on powerpc breaks the kernel compile:

CC arch/powerpc/kernel/module_32.o
arch/powerpc/kernel/module_32.c: In function 'module_find_bug':
arch/powerpc/kernel/module_32.c:377: error: increment of pointer to unknown structure
arch/powerpc/kernel/module_32.c:377: error: arithmetic on pointer to an incomplete type
arch/powerpc/kernel/module_32.c:378: error: dereferencing pointer to incomplete type
make[1]: *** [arch/powerpc/kernel/module_32.o] Error 1

A quick grep of 'bug_entry' through the powerpc code seems to indicate this
also affects arch/powerpc/kernel/module_64.c and arch/powerpc/xmon.c.

Thanks,

Keri
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/