[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181107202641.7865-1-malat@debian.org>
Date: Wed, 7 Nov 2018 21:26:41 +0100
From: Mathieu Malaterre <malat@...ian.org>
To: Michael Ellerman <mpe@...erman.id.au>
Cc: Mathieu Malaterre <malat@...ian.org>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Paul Mackerras <paulus@...ba.org>,
linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: [PATCH] powerpc: Mark variable `cpumsr` as unused
Add gcc attribute unused for `cpumsr` variable.
Fix warnings treated as errors with W=1:
arch/powerpc/kernel/process.c:231:16: error: variable ‘cpumsr’ set but not used [-Werror=unused-but-set-variable]
arch/powerpc/kernel/process.c:296:16: error: variable ‘cpumsr’ set but not used [-Werror=unused-but-set-variable]
Signed-off-by: Mathieu Malaterre <malat@...ian.org>
---
arch/powerpc/kernel/process.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c
index 96f34730010f..b9f1a2408738 100644
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
@@ -228,7 +228,7 @@ EXPORT_SYMBOL_GPL(flush_fp_to_thread);
void enable_kernel_fp(void)
{
- unsigned long cpumsr;
+ unsigned long cpumsr __maybe_unused;
WARN_ON(preemptible());
@@ -293,7 +293,7 @@ EXPORT_SYMBOL(giveup_altivec);
void enable_kernel_altivec(void)
{
- unsigned long cpumsr;
+ unsigned long cpumsr __maybe_unused;
WARN_ON(preemptible());
--
2.11.0
Powered by blists - more mailing lists