linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: arch/powerpc/kernel/setup_64.c - cleanup warnings
@ 2021-03-16  4:11 He Ying
  2021-03-16  6:57 ` Christophe Leroy
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: He Ying @ 2021-03-16  4:11 UTC (permalink / raw)
  To: mpe, benh, paulus, npiggin, dja, akpm, aneesh.kumar, rppt, ardb,
	clg, christophe.leroy
  Cc: johnny.chenyi, linuxppc-dev, linux-kernel

warning: symbol 'rfi_flush' was not declared.
warning: symbol 'entry_flush' was not declared.
warning: symbol 'uaccess_flush' was not declared.
We found warnings above in arch/powerpc/kernel/setup_64.c by using
sparse tool.

Define 'entry_flush' and 'uaccess_flush' as static because they are not
referenced outside the file. Include asm/security_features.h in which
'rfi_flush' is declared.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: He Ying <heying24@huawei.com>
---
 arch/powerpc/kernel/setup_64.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index 560ed8b975e7..f92d72a7e7ce 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -68,6 +68,7 @@
 #include <asm/early_ioremap.h>
 #include <asm/pgalloc.h>
 #include <asm/asm-prototypes.h>
+#include <asm/security_features.h>
 
 #include "setup.h"
 
@@ -949,8 +950,8 @@ static bool no_rfi_flush;
 static bool no_entry_flush;
 static bool no_uaccess_flush;
 bool rfi_flush;
-bool entry_flush;
-bool uaccess_flush;
+static bool entry_flush;
+static bool uaccess_flush;
 DEFINE_STATIC_KEY_FALSE(uaccess_flush_key);
 EXPORT_SYMBOL(uaccess_flush_key);
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-03-31  1:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-16  4:11 [PATCH] powerpc: arch/powerpc/kernel/setup_64.c - cleanup warnings He Ying
2021-03-16  6:57 ` Christophe Leroy
2021-03-17  3:04 ` Daniel Axtens
2021-03-17  3:37   ` heying (H)
2021-03-17  7:58     ` Daniel Axtens
2021-03-17 11:57       ` Michael Ellerman
2021-03-18  2:37         ` heying (H)
2021-03-31  1:09 ` Michael Ellerman

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).