]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
powerpc: Fix compile errors with CONFIG_BUG=n
authorPaul Mackerras <paulus@samba.org>
Fri, 31 Oct 2008 10:34:09 +0000 (21:34 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 31 Oct 2008 10:34:09 +0000 (21:34 +1100)
commitebdba9af940d63e469dc8e46b4aa1fc474e8ee2d
treeb17fb7f5de11c2604aa764b08ad6930528d3bfaa
parent8ba4773aee23a5e2e1ce386c5bd86e407496de99
powerpc: Fix compile errors with CONFIG_BUG=n

This makes sure we don't try to call find_bug or is_warning_bug when
CONFIG_BUG=n and CONFIG_XMON=y.  Otherwise we get these errors:

arch/powerpc/xmon/xmon.c: In function ‘print_bug_trap’:
arch/powerpc/xmon/xmon.c:1364: error: implicit declaration of function ‘find_bug’
arch/powerpc/xmon/xmon.c:1364: warning: assignment makes pointer from integer without a cast
arch/powerpc/xmon/xmon.c:1367: error: implicit declaration of function ‘is_warning_bug’
arch/powerpc/xmon/xmon.c:1374: error: dereferencing pointer to incomplete type
make[2]: *** [arch/powerpc/xmon/xmon.o] Error 1
make[1]: *** [arch/powerpc/xmon] Error 2
make: *** [sub-make] Error 2

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/xmon/xmon.c