]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ARM: 6140/1: silence a bogus sparse warning in unwind.c
authorAlexander Shishkin <virtuoso@slind.org>
Fri, 21 May 2010 11:32:07 +0000 (12:32 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 24 May 2010 19:42:03 +0000 (20:42 +0100)
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 <virtuoso@slind.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/unwind.c

index 50292cd9c120aca1600c2bc2f8542697bc1bccca..dd81a918c106ea30029c0b8ce4eb60885f8a69a1 100644 (file)
@@ -26,6 +26,7 @@
  * http://infocenter.arm.com/help/topic/com.arm.doc.subset.swdev.abi/index.html
  */
 
+#ifndef __CHECKER__
 #if !defined (__ARM_EABI__)
 #warning Your compiler does not have EABI support.
 #warning    ARM unwind is known to compile only with EABI compilers.
@@ -34,6 +35,7 @@
 #warning Your compiler is too buggy; it is known to not compile ARM unwind support.
 #warning    Change compiler or disable ARM_UNWIND option.
 #endif
+#endif /* __CHECKER__ */
 
 #include <linux/kernel.h>
 #include <linux/init.h>