x86/mm/mmap: Fix -Wmissing-prototypes warnings
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.
Signed-off-by Benjamin Thiel <[email protected]>
--- arch/x86/mm/mmap.c | 2 ++ 1 file changed, 2 insertions(+)
arch/x86/mm/mmap.c +2 -0
@@ -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
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.
Signed-off-by Benjamin Thiel <[email protected]>
Signed-off-by Borislav Petkov <[email protected]>
--- arch/x86/mm/mmap.c | 2 ++ 1 file changed, 2 insertions(+)
arch/x86/mm/mmap.c +2 -0
@@ -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"