oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [arm-integrator:b4/virt-to-pfn-v6-4-rc1 10/12] arch/arm/include/asm/memory.h:384:9: warning: 'ARCH_PFN_OFFSET' macro redefined
@ 2023-05-07 13:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-07 13:42 UTC (permalink / raw)
  To: Linus Walleij; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git b4/virt-to-pfn-v6-4-rc1
head:   042946296cd2b01e67500f6ca02c750fbd5d0046
commit: d2a5bf80564791da3b26d022633713c6e5838159 [10/12] ARM: mm: Make virt_to_pfn() a static inline
config: arm-s5pv210_defconfig (https://download.01.org/0day-ci/archive/20230507/202305072129.TRXmOJgq-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b0fb98227c90adf2536c9ad644a74d5e92961111)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/commit/?id=d2a5bf80564791da3b26d022633713c6e5838159
        git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
        git fetch --no-tags arm-integrator b4/virt-to-pfn-v6-4-rc1
        git checkout d2a5bf80564791da3b26d022633713c6e5838159
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/gpu/drm/ lib/ mm/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305072129.TRXmOJgq-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from lib/iomap_copy.c:7:
   In file included from include/linux/io.h:13:
   In file included from arch/arm/include/asm/io.h:26:
>> arch/arm/include/asm/memory.h:384:9: warning: 'ARCH_PFN_OFFSET' macro redefined [-Wmacro-redefined]
   #define ARCH_PFN_OFFSET         PHYS_PFN_OFFSET
           ^
   include/asm-generic/memory_model.h:15:9: note: previous definition is here
   #define ARCH_PFN_OFFSET         (0UL)
           ^
   1 warning generated.


vim +/ARCH_PFN_OFFSET +384 arch/arm/include/asm/memory.h

4dc9a81715973c arch/arm/include/asm/memory.h Santosh Shilimkar 2013-07-31  374  
^1da177e4c3f41 include/asm-arm/memory.h      Linus Torvalds    2005-04-16  375  /*
^1da177e4c3f41 include/asm-arm/memory.h      Linus Torvalds    2005-04-16  376   * Conversion between a struct page and a physical address.
^1da177e4c3f41 include/asm-arm/memory.h      Linus Torvalds    2005-04-16  377   *
^1da177e4c3f41 include/asm-arm/memory.h      Linus Torvalds    2005-04-16  378   *  page_to_pfn(page)	convert a struct page * to a PFN number
^1da177e4c3f41 include/asm-arm/memory.h      Linus Torvalds    2005-04-16  379   *  pfn_to_page(pfn)	convert a _valid_ PFN number to struct page *
^1da177e4c3f41 include/asm-arm/memory.h      Linus Torvalds    2005-04-16  380   *
^1da177e4c3f41 include/asm-arm/memory.h      Linus Torvalds    2005-04-16  381   *  virt_to_page(k)	convert a _valid_ virtual address to struct page *
^1da177e4c3f41 include/asm-arm/memory.h      Linus Torvalds    2005-04-16  382   *  virt_addr_valid(k)	indicates whether a virtual address is valid
^1da177e4c3f41 include/asm-arm/memory.h      Linus Torvalds    2005-04-16  383   */
7d12963757b917 include/asm-arm/memory.h      Russell King      2006-04-04 @384  #define ARCH_PFN_OFFSET		PHYS_PFN_OFFSET
05944d74bc28ff include/asm-arm/memory.h      Russell King      2006-11-30  385  

:::::: The code at line 384 was first introduced by commit
:::::: 7d12963757b9170f162f317b7461353c5fb574e8 [ARM] Remove unnecessary extra parens in include/asm-arm/memory.h

:::::: TO: Russell King <rmk@dyn-67.arm.linux.org.uk>
:::::: CC: Russell King <rmk+kernel@arm.linux.org.uk>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-07 13:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-07 13:42 [arm-integrator:b4/virt-to-pfn-v6-4-rc1 10/12] arch/arm/include/asm/memory.h:384:9: warning: 'ARCH_PFN_OFFSET' macro redefined kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).