[POWERPC] Generic BUG for powerpc
This makes powerpc use the generic BUG machinery. The biggest reports the function name, since it is redundant with kallsyms, and not needed in general. There is an overall reduction of code, since module_32/64 duplicated several functions. Unfortunately there's no way to tell gcc that BUG won't return, so the BUG macro includes a goto loop. This will generate a real jmp instruction, which is never used. [akpm@osdl.org: build fix] [paulus@samba.org: remove infinite loop in BUG_ON] Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org> Cc: Andi Kleen <ak@muc.de> Cc: Hugh Dickens <hugh@veritas.com> Cc: Michael Ellerman <michael@ellerman.id.au> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
973c1fabc7
commit
73c9ceab40
@@ -46,8 +46,6 @@ struct mod_arch_specific {
|
||||
unsigned int num_bugs;
|
||||
};
|
||||
|
||||
extern struct bug_entry *module_find_bug(unsigned long bugaddr);
|
||||
|
||||
/*
|
||||
* Select ELF headers.
|
||||
* Make empty section for module_frob_arch_sections to expand.
|
||||
|
Reference in New Issue
Block a user