mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/mm/mmap: Fix -Wmissing-prototypes warnings
@ 2020-04-02 12:43 Benjamin Thiel
  2020-04-22 19:13 ` [tip: x86/cleanups] " tip-bot2 for Benjamin Thiel
  0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Thiel @ 2020-04-02 12:43 UTC (permalink / raw)
  To: LKML; +Cc: X86 ML, Benjamin Thiel

Add includes for the prototypes of valid_phys_addr_range(),
arch_mmap_rnd() and valid_mmap_phys_addr_range() in order to fix
-Wmissing-prototypes warnings.

Signed-off-by: Benjamin Thiel <b.thiel@posteo.de>
---
 arch/x86/mm/mmap.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/mm/mmap.c b/arch/x86/mm/mmap.c
index cb91eccc4960..c90c20904a60 100644
--- a/arch/x86/mm/mmap.c
+++ b/arch/x86/mm/mmap.c
@@ -18,7 +18,9 @@
 #include <linux/sched/signal.h>
 #include <linux/sched/mm.h>
 #include <linux/compat.h>
+#include <linux/elf-randomize.h>
 #include <asm/elf.h>
+#include <asm/io.h>
 
 #include "physaddr.h"
 
-- 
2.17.1


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

end of thread, other threads:[~2020-04-22 19:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-02 12:43 [PATCH] x86/mm/mmap: Fix -Wmissing-prototypes warnings Benjamin Thiel
2020-04-22 19:13 ` [tip: x86/cleanups] " tip-bot2 for Benjamin Thiel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®