summaryrefslogtreecommitdiffstats
path: root/arch/hexagon
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2023-11-30 23:58:16 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-12-11 02:21:34 +0100
commitbba07109f57d1299cd5551eb948ce182d711c221 (patch)
tree313682805ddc6fab93762f872988389586520e6f /arch/hexagon
parenthexagon: mm: mark paging_init() as static (diff)
downloadlinux-bba07109f57d1299cd5551eb948ce182d711c221.tar.xz
linux-bba07109f57d1299cd5551eb948ce182d711c221.zip
hexagon: mm: include asm/setup.h for setup_arch_memory()'s prototype
Clang warns: arch/hexagon/mm/init.c:138:13: warning: no previous prototype for function 'setup_arch_memory' [-Wmissing-prototypes] 138 | void __init setup_arch_memory(void) | ^ arch/hexagon/mm/init.c:138:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 138 | void __init setup_arch_memory(void) | ^ | static The prototype is in asm/setup.h, include it to clear up the warning. Link: https://lkml.kernel.org/r/20231130-hexagon-missing-prototypes-v1-3-5c34714afe9e@kernel.org Signed-off-by: Nathan Chancellor <nathan@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Brian Cain <bcain@quicinc.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/hexagon')
-rw-r--r--arch/hexagon/mm/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/hexagon/mm/init.c b/arch/hexagon/mm/init.c
index f164b377b93b..3458f39ca2ac 100644
--- a/arch/hexagon/mm/init.c
+++ b/arch/hexagon/mm/init.c
@@ -12,6 +12,7 @@
#include <linux/highmem.h>
#include <asm/tlb.h>
#include <asm/sections.h>
+#include <asm/setup.h>
#include <asm/vm_mmu.h>
/*