Skip to contentSkip to conversation

arm: mm: include <asm/set_memory.h>

PATCH New Ben Dooks 1 participant 1 message Oct 8, 2019 Arm (32-bit)

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 arm: mm: include <asm/set_memory.h>

The definitions of set_kernel_text_rw() and set_kernel_text_ro() are in <asm/set_memory.h> but this is not included in init.c which defines these. Silence the following warnings by including the <asm/set_memory.h> header.

arch/arm/mm/init.c:669:6: warning: symbol 'set_kernel_text_rw' was not declared. Should it be static? arch/arm/mm/init.c:678:6: warning: symbol 'set_kernel_text_ro' was not declared. Should it be static?

---
KernelVersion: 5.4-rc2

---
 arch/arm/mm/init.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mm/init.c +1 -0
index d5cc76859e2b..3efab4e2b297 100644
@@ -30,6 +30,7 @@
 #include <asm/prom.h>
 #include <asm/sections.h>
 #include <asm/setup.h>
+#include <asm/set_memory.h>
 #include <asm/system_info.h>
 #include <asm/tlb.h>
 #include <asm/fixmap.h>
Signature · 7 lines
2.23.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel