summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Thiel <b.thiel@posteo.de>2020-04-02 14:43:07 +0200
committerBorislav Petkov <bp@suse.de>2020-04-22 20:19:48 +0200
commit60abfd08e88b2b41366dcdb1e586614770c791fa (patch)
tree6285d1ba8894618abdaa9c4af9de45682b8c3b5b
parent968e6147fcc5862096863980298f3ec4ae5742eb (diff)
x86/mm/mmap: Fix -Wmissing-prototypes warnings
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> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20200402124307.10857-1-b.thiel@posteo.de
-rw-r--r--arch/x86/mm/mmap.c2
1 files changed, 2 insertions, 0 deletions
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"