silence a bogus sparse warning in unwind.c
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.
Signed-off-by Alexander Shishkin <[email protected]>
--- arch/arm/kernel/unwind.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/kernel/unwind.c +2 -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__)#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
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.
Signed-off-by Alexander Shishkin <[email protected]>--- arch/arm/kernel/unwind.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)arch/arm/kernel/unwind.c +0
-0
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__) ?