Skip to contentSkip to conversation

silence a bogus sparse warning in unwind.c

PATCH New Alexander Shishkin 2 participants 2 messages May 11, 2010 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/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.

---
 arch/arm/kernel/unwind.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/kernel/unwind.c +2 -0
index 50292cd..dd81a91 100644
@@ -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>
Signature · 1 line
1.7.1.1.g15764
#1 lore raw

PATCH 1/1 silence a bogus sparse warning in unwind.c

Quoted 14 lines · Alexander Shishkin

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.

---
 arch/arm/kernel/unwind.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/kernel/unwind.c +0 -0
index 50292cd..dd81a91 100644

arch/arm/kernel/unwind.c line 30

Quoted 5 lines
arch/arm/kernel/unwind.c +1 -0
@@ -26,6 +26,7 @@
  * http://infocenter.arm.com/help/topic/com.arm.doc.subset.swdev.abi/index.html
  */
 
+#ifndef __CHECKER__
 #if !defined (__ARM_EABI__)

#if !defined(__ARM_EABI__) && !defined(__CHECKER__) ?