projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
968e614
)
x86/mm/mmap: Fix -Wmissing-prototypes warnings
author
Benjamin Thiel
<b.thiel@posteo.de>
Thu, 2 Apr 2020 12:43:07 +0000
(14:43 +0200)
committer
Borislav Petkov
<bp@suse.de>
Wed, 22 Apr 2020 18:19:48 +0000
(20:19 +0200)
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
arch/x86/mm/mmap.c
patch
|
blob
|
history
diff --git
a/arch/x86/mm/mmap.c
b/arch/x86/mm/mmap.c
index cb91eccc4960cd95b267d9f16ad98b48de6ec1d7..c90c20904a60750b80e54c090fc844816369fcd9 100644
(file)
--- 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"