summaryrefslogtreecommitdiff
path: root/arch/arm64/mm
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2021-01-27 15:52:16 +0300
committerWill Deacon <will@kernel.org>2021-01-27 15:52:16 +0300
commitc7b9095e87bf81f029fbae2e5d6a8354b6f11987 (patch)
tree0514c9cd21b8027a16e82e9d1831e4b0e1a688d8 /arch/arm64/mm
parent1e193c70f5bba8fc66b9da19be64e9a9229a37d6 (diff)
downloadlinux-c7b9095e87bf81f029fbae2e5d6a8354b6f11987.tar.xz
arm64: Include linux/io.h in mm/mmap.c
Commit 507d664450f8 ("arm64: mm: Remove unused header file") removed a bunch of apparently "unused" header inclusions from our mm/mmap.c implementation, but in doing so introduced the following warning when building with W=1: >> arch/arm64/mm/mmap.c:17:5: warning: no previous prototype for 'valid_phys_addr_range' [-Wmissing-prototypes] 17 | int valid_phys_addr_range(phys_addr_t addr, size_t size) | ^~~~~~~~~~~~~~~~~~~~~ >> arch/arm64/mm/mmap.c:36:5: warning: no previous prototype for 'valid_mmap_phys_addr_range' [-Wmissing-prototypes] 36 | int valid_mmap_phys_addr_range(unsigned long pfn, size_t size) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Add back the linux/io.h header inclusion to pull in the missing prototypes. Reported-by: kernel test robot <lkp@intel.com> Link: https://lore.kernel.org/r/202101271438.V9TmBC31-lkp@intel.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/mm')
-rw-r--r--arch/arm64/mm/mmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/mm/mmap.c b/arch/arm64/mm/mmap.c
index c66b3878712c..a38f54cd638c 100644
--- a/arch/arm64/mm/mmap.c
+++ b/arch/arm64/mm/mmap.c
@@ -5,6 +5,7 @@
* Copyright (C) 2012 ARM Ltd.
*/
+#include <linux/io.h>
#include <linux/memblock.h>
#include <linux/types.h>