All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm: kernel: add missing import <linux/moduleloader.h>
@ 2019-05-22  9:57 ` Philippe Mazenauer
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Mazenauer @ 2019-05-22  9:57 UTC (permalink / raw)
  Cc: Philippe Mazenauer, Russell King, moderated list:ARM PORT, open list

Include corresponding header file <linux/moduleloader.h> for function
module_frob_arch_sections().

../arch/arm/kernel/module-plts.c:191:5: warning: no previous prototype for ‘module_frob_arch_sections’ [-Wmissing-prototypes]
 int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs,
     ^~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Philippe Mazenauer <philippe.mazenauer@outlook.de>
---
 arch/arm/kernel/module-plts.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/kernel/module-plts.c b/arch/arm/kernel/module-plts.c
index 3d0c2e4dda1d..3725eccdaa73 100644
--- a/arch/arm/kernel/module-plts.c
+++ b/arch/arm/kernel/module-plts.c
@@ -9,6 +9,7 @@
 #include <linux/elf.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <linux/moduleloader.h>
 #include <linux/sort.h>
 
 #include <asm/cache.h>
-- 
2.17.1


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

* [PATCH] arm: kernel: add missing import <linux/moduleloader.h>
@ 2019-05-22  9:57 ` Philippe Mazenauer
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Mazenauer @ 2019-05-22  9:57 UTC (permalink / raw)
  Cc: Philippe Mazenauer, Russell King, moderated list:ARM PORT, open list

Include corresponding header file <linux/moduleloader.h> for function
module_frob_arch_sections().

../arch/arm/kernel/module-plts.c:191:5: warning: no previous prototype for ‘module_frob_arch_sections’ [-Wmissing-prototypes]
 int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs,
     ^~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Philippe Mazenauer <philippe.mazenauer@outlook.de>
---
 arch/arm/kernel/module-plts.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/kernel/module-plts.c b/arch/arm/kernel/module-plts.c
index 3d0c2e4dda1d..3725eccdaa73 100644
--- a/arch/arm/kernel/module-plts.c
+++ b/arch/arm/kernel/module-plts.c
@@ -9,6 +9,7 @@
 #include <linux/elf.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <linux/moduleloader.h>
 #include <linux/sort.h>
 
 #include <asm/cache.h>
-- 
2.17.1

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2019-05-22  9:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-22  9:57 [PATCH] arm: kernel: add missing import <linux/moduleloader.h> Philippe Mazenauer
2019-05-22  9:57 ` Philippe Mazenauer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.