mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 08:31:55 +00:00
sparc32: fix sparse warning in traps_32.c
Fix following warning: traps_32.c:47:6: error: symbol 'die_if_kernel' redeclared with different type - different modifiers Add __noreturn to both definition and declaration Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a2b0aa9463
commit
fcd0196b7e
@ -20,6 +20,6 @@ extern void do_BUG(const char *file, int line);
|
||||
#include <asm-generic/bug.h>
|
||||
|
||||
struct pt_regs;
|
||||
extern void die_if_kernel(char *str, struct pt_regs *regs) __attribute__ ((noreturn));
|
||||
void __noreturn die_if_kernel(char *str, struct pt_regs *regs);
|
||||
|
||||
#endif
|
||||
|
@ -44,7 +44,7 @@ static void instruction_dump(unsigned long *pc)
|
||||
#define __SAVE __asm__ __volatile__("save %sp, -0x40, %sp\n\t")
|
||||
#define __RESTORE __asm__ __volatile__("restore %g0, %g0, %g0\n\t")
|
||||
|
||||
void die_if_kernel(char *str, struct pt_regs *regs)
|
||||
void __noreturn die_if_kernel(char *str, struct pt_regs *regs)
|
||||
{
|
||||
static int die_counter;
|
||||
int count = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user