[arm-integrator:kernel-in-vmalloc-v5.19-rc1 21/35] arch/hexagon/include/asm/page.h: asm/mem-layout.h is included more than once.

From: kernel test robot
Date: Thu Jul 07 2022 - 02:44:51 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.19-rc1
head: 144435741b0a6f31403d3084103678da3b4f9d11
commit: 5f1754f29aba0e4910d757ab7c318abc9d22b66b [21/35] Hexagon: Make virt_to_pfn() a static inline
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <yujie.liu@xxxxxxxxx>


includecheck warnings: (new ones prefixed by >>)
>> arch/hexagon/include/asm/page.h: asm/mem-layout.h is included more than once.

5f1754f29aba0 (Linus Walleij 2022-06-02 09:45:31 +0200 81) /* Needed for PAGE_OFFSET used in the macro right below */
5f1754f29aba0 (Linus Walleij 2022-06-02 09:45:31 +0200 @82) #include <asm/mem-layout.h>
5f1754f29aba0 (Linus Walleij 2022-06-02 09:45:31 +0200 83)
a7e79840991ea (Richard Kuo 2011-10-31 18:53:38 -0500 84) /*
a7e79840991ea (Richard Kuo 2011-10-31 18:53:38 -0500 85) * We need a __pa and a __va routine for kernel space.
a7e79840991ea (Richard Kuo 2011-10-31 18:53:38 -0500 86) * MIPS says they're only used during mem_init.
a7e79840991ea (Richard Kuo 2011-10-31 18:53:38 -0500 87) * also, check if we need a PHYS_OFFSET.
a7e79840991ea (Richard Kuo 2011-10-31 18:53:38 -0500 88) */
8f5a0b9dffeb3 (Richard Kuo 2013-03-22 16:05:40 -0500 89) #define __pa(x) ((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET)
8f5a0b9dffeb3 (Richard Kuo 2013-03-22 16:05:40 -0500 90) #define __va(x) ((void *)((unsigned long)(x) - PHYS_OFFSET + PAGE_OFFSET))
...
a7e79840991ea (Richard Kuo 2011-10-31 18:53:38 -0500 146) #define kern_addr_valid(addr) (1)
a7e79840991ea (Richard Kuo 2011-10-31 18:53:38 -0500 147)
8f5a0b9dffeb3 (Richard Kuo 2013-03-22 16:05:40 -0500 @148) #include <asm/mem-layout.h>
a7e79840991ea (Richard Kuo 2011-10-31 18:53:38 -0500 149) #include <asm-generic/memory_model.h>
a7e79840991ea (Richard Kuo 2011-10-31 18:53:38 -0500 150) /* XXX Todo: implement assembly-optimized version of getorder. */

--
0-DAY CI Kernel Test Service
https://01.org/lkp