[PATCH] arm64: mm: Fix missing-prototypes in pageattr.c

Tian Tao tiantao6 at hisilicon.com
Tue Sep 15 22:20:47 EDT 2020


Fix the following warnings.
arch/arm64/mm/pageattr.c:138:5: warning: no previous prototype for
‘set_memory_valid’ [-Wmissing-prototypes]
int set_memory_valid(unsigned long addr, int numpages, int enable)
     ^
arch/arm64/mm/pageattr.c:150:5: warning: no previous prototype for
‘set_direct_map_invalid_noflush’ [-Wmissing-prototypes]
int set_direct_map_invalid_noflush(struct page *page)
     ^
arch/arm64/mm/pageattr.c:165:5: warning: no previous prototype for
‘set_direct_map_default_noflush’ [-Wmissing-prototypes]
int set_direct_map_default_noflush(struct page *page)
     ^
Signed-off-by: Tian Tao <tiantao6 at hisilicon.com>
---
 arch/arm64/mm/pageattr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/mm/pageattr.c b/arch/arm64/mm/pageattr.c
index 23f648c..1b94f5b 100644
--- a/arch/arm64/mm/pageattr.c
+++ b/arch/arm64/mm/pageattr.c
@@ -8,6 +8,7 @@
 #include <linux/sched.h>
 #include <linux/vmalloc.h>
 
+#include <asm/cacheflush.h>
 #include <asm/set_memory.h>
 #include <asm/tlbflush.h>
 
-- 
2.7.4




More information about the linux-arm-kernel mailing list