Skip to content

Commit 830703c

Browse files
virtuosoRussell King
authored andcommitted
ARM: 6140/1: silence a bogus sparse warning in unwind.c
The check for compiler which is supposed to miscompile unwind tables clearly has nothing to do with sparse (which does not define necessary macros anyway), so simply silence it. Signed-off-by: Alexander Shishkin <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent becba8a commit 830703c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm/kernel/unwind.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* http://infocenter.arm.com/help/topic/com.arm.doc.subset.swdev.abi/index.html
2727
*/
2828

29+
#ifndef __CHECKER__
2930
#if !defined (__ARM_EABI__)
3031
#warning Your compiler does not have EABI support.
3132
#warning ARM unwind is known to compile only with EABI compilers.
@@ -34,6 +35,7 @@
3435
#warning Your compiler is too buggy; it is known to not compile ARM unwind support.
3536
#warning Change compiler or disable ARM_UNWIND option.
3637
#endif
38+
#endif /* __CHECKER__ */
3739

3840
#include <linux/kernel.h>
3941
#include <linux/init.h>

0 commit comments

Comments
 (0)