public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [ardb:arm64-ro-page-tables-pkvm-v5.17 15/28] include/linux/pgtable.h:84:29: error: redefinition of 'p4d_index'
@ 2022-02-20 17:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-02-20 17:55 UTC (permalink / raw)
  To: Ard Biesheuvel; +Cc: llvm, kbuild-all, linux-kernel

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git arm64-ro-page-tables-pkvm-v5.17
head:   1faeabde0ba3c81ad666ab924ab79ef64843d40d
commit: 8009c0d425d69c34521e0f8123ff62786f1ac8fa [15/28] mm: add default definition of p4d_index()
config: x86_64-randconfig-a001 (https://download.01.org/0day-ci/archive/20220221/202202210124.8WuKWr52-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?id=8009c0d425d69c34521e0f8123ff62786f1ac8fa
        git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
        git fetch --no-tags ardb arm64-ro-page-tables-pkvm-v5.17
        git checkout 8009c0d425d69c34521e0f8123ff62786f1ac8fa
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 prepare

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/x86/kernel/asm-offsets.c:13:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:20:
   In file included from include/linux/mm.h:33:
>> include/linux/pgtable.h:84:29: error: redefinition of 'p4d_index'
   static inline unsigned long p4d_index(unsigned long address)
                               ^
   arch/x86/include/asm/pgtable.h:904:29: note: previous definition is here
   static inline unsigned long p4d_index(unsigned long address)
                               ^
   1 error generated.
   make[2]: *** [scripts/Makefile.build:121: arch/x86/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1191: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:219: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/p4d_index +84 include/linux/pgtable.h

    82	
    83	#ifndef p4d_index
  > 84	static inline unsigned long p4d_index(unsigned long address)
    85	{
    86		return (address >> P4D_SHIFT) & (PTRS_PER_P4D - 1);
    87	}
    88	#define p4d_index p4d_index
    89	#endif
    90	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

only message in thread, other threads:[~2022-02-20 17:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-20 17:55 [ardb:arm64-ro-page-tables-pkvm-v5.17 15/28] include/linux/pgtable.h:84:29: error: redefinition of 'p4d_index' 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