* [PATCH 1/1] silence a bogus sparse warning in unwind.c
@ 2010-05-11 14:06 Alexander Shishkin
2010-05-11 14:55 ` Russell King - ARM Linux
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Shishkin @ 2010-05-11 14:06 UTC (permalink / raw)
To: linux-arm-kernel
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>
---
arch/arm/kernel/unwind.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/arm/kernel/unwind.c b/arch/arm/kernel/unwind.c
index 50292cd..dd81a91 100644
--- a/arch/arm/kernel/unwind.c
+++ b/arch/arm/kernel/unwind.c
@@ -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>
--
1.7.1.1.g15764
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 1/1] silence a bogus sparse warning in unwind.c
2010-05-11 14:06 [PATCH 1/1] silence a bogus sparse warning in unwind.c Alexander Shishkin
@ 2010-05-11 14:55 ` Russell King - ARM Linux
0 siblings, 0 replies; 2+ messages in thread
From: Russell King - ARM Linux @ 2010-05-11 14:55 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, May 11, 2010 at 05:06:14PM +0300, Alexander Shishkin wrote:
> 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>
> ---
> arch/arm/kernel/unwind.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/kernel/unwind.c b/arch/arm/kernel/unwind.c
> index 50292cd..dd81a91 100644
> --- a/arch/arm/kernel/unwind.c
> +++ b/arch/arm/kernel/unwind.c
> @@ -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__) ?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-11 14:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-11 14:06 [PATCH 1/1] silence a bogus sparse warning in unwind.c Alexander Shishkin
2010-05-11 14:55 ` Russell King - ARM Linux
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).