]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Include linux/io.h in mm/mmap.c
authorWill Deacon <will@kernel.org>
Wed, 27 Jan 2021 12:52:16 +0000 (12:52 +0000)
committerWill Deacon <will@kernel.org>
Wed, 27 Jan 2021 12:52:16 +0000 (12:52 +0000)
commitbb5e04f6d9172684a93c72c02bb9e9db79f84d93
tree0514c9cd21b8027a16e82e9d1831e4b0e1a688d8
parenta7e66374d5e231067bbc013c7fb573c6d7c05fc1
arm64: Include linux/io.h in mm/mmap.c

Commit 7165d09cd24b ("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>
arch/arm64/mm/mmap.c