diff options
author | Tian Tao <tiantao6@hisilicon.com> | 2020-09-16 10:20:47 +0800 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-09-18 14:33:46 +0100 |
commit | 152d75d66428afc636ec34bcef8c90a4aa2a7848 (patch) | |
tree | 6514bfbbf6ef31d81e9f3b12b27e5339bed1b29a /arch | |
parent | c6b90d5cf637ac1186ca25ec1f9e410455a0ca7d (diff) | |
download | lwn-152d75d66428afc636ec34bcef8c90a4aa2a7848.tar.gz lwn-152d75d66428afc636ec34bcef8c90a4aa2a7848.zip |
arm64: mm: Fix missing-prototypes in pageattr.c
Fix the following warnings.
‘set_memory_valid’ [-Wmissing-prototypes]
int set_memory_valid(unsigned long addr, int numpages, int enable)
^
‘set_direct_map_invalid_noflush’ [-Wmissing-prototypes]
int set_direct_map_invalid_noflush(struct page *page)
^
‘set_direct_map_default_noflush’ [-Wmissing-prototypes]
int set_direct_map_default_noflush(struct page *page)
^
Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Link: https://lore.kernel.org/r/1600222847-56792-1-git-send-email-tiantao6@hisilicon.com
arch/arm64/mm/pageattr.c:138:5: warning: no previous prototype for
arch/arm64/mm/pageattr.c:150:5: warning: no previous prototype for
arch/arm64/mm/pageattr.c:165:5: warning: no previous prototype for
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm64/mm/pageattr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/mm/pageattr.c b/arch/arm64/mm/pageattr.c index 23f648c2a199..1b94f5b82654 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> |