[tip: x86/cleanups] x86/mm/mmap: Fix -Wmissing-prototypes warnings
From: tip-bot2 for Benjamin Thiel
Date: Wed Apr 22 2020 - 15:13:36 EST
The following commit has been merged into the x86/cleanups branch of tip:
Commit-ID: 60abfd08e88b2b41366dcdb1e586614770c791fa
Gitweb: https://git.kernel.org/tip/60abfd08e88b2b41366dcdb1e586614770c791fa
Author: Benjamin Thiel <b.thiel@xxxxxxxxx>
AuthorDate: Thu, 02 Apr 2020 14:43:07 +02:00
Committer: Borislav Petkov <bp@xxxxxxx>
CommitterDate: Wed, 22 Apr 2020 20:19:48 +02:00
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@xxxxxxxxx>
Signed-off-by: Borislav Petkov <bp@xxxxxxx>
Link: https://lkml.kernel.org/r/20200402124307.10857-1-b.thiel@xxxxxxxxx
---
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 cb91ecc..c90c209 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"