ARM: bug.h: fix sparse error: symbol '__bug' redeclared
PATCH 1/1 ARM: bug.h: fix sparse error: symbol '__bug' redeclared
The symbol '__bug' is declared in arch/arm/include/asm/bug.h as:
extern void __bug(const char *file, int line) __attribute__((noreturn));
But is defined in arch/arm/kernel/traps.c as:
void __attribute__((noreturn)) __bug(const char *file, int line)
The different position of the __attribute_((noreturn)) causes a sparse error.
Change the declaration to match the definition to quiet the error.
Signed-off-by H Hartley Sweeten <[email protected]>
Cc Russell King <[email protected]>
---
arch/arm/include/asm/bug.h +1 -1
@@ -4,7 +4,7 @@#ifdef CONFIG_BUG #ifdef CONFIG_DEBUG_BUGVERBOSE -extern void __bug (const char *file,int line) __attribute__((noreturn)); +extern void __attribute__((noreturn))__bug (const char *file,int line);/* give file/line information */ #define BUG () __bug(__FILE__, __LINE__)