Skip to contentSkip to conversation

x86/mm/mmap: Fix -Wmissing-prototypes warnings

PATCH Applied Benjamin Thiel 2 participants 2 messages Apr 2, 2020 – Apr 22, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/x86/mm/mmap.c | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/mm/mmap.c +2 -0
index cb91eccc4960..c90c20904a60 100644
@@ -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"
 
Signature · 1 line
2.17.1
merge bot Applied
#1 lore raw
The following commit has been merged into the x86/cleanups branch of tip:

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 <[email protected]>
AuthorDate:    Thu, 02 Apr 2020 14:43:07 +02:00
Committer:     Borislav Petkov <[email protected]>
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.

---
 arch/x86/mm/mmap.c | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/mm/mmap.c +2 -0
index cb91ecc..c90c209 100644
@@ -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"