Messages in this thread | | | Date | Fri, 21 Jan 2022 11:20:50 +0800 | From | kernel test robot <> | Subject | [rppt:gfp-unmapped/v0 1/3] mm/page_alloc.c:90:9: warning: 'PMD_ORDER' macro redefined |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git gfp-unmapped/v0 head: 53acd000a0eef1457aaa4930c0d2003d7785f799 commit: 253f456a5cb652a16a59cc4ac2e18669997d79cd [1/3] mm/page_alloc: introduce __GFP_UNMAPPED and MIGRETE_UNMAPPED config: mips-loongson1c_defconfig (https://download.01.org/0day-ci/archive/20220121/202201211125.en8nqmwl-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f7b7138a62648f4019c55e4671682af1f851f295) 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 mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git/commit/?id=253f456a5cb652a16a59cc4ac2e18669997d79cd git remote add rppt https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git git fetch --no-tags rppt gfp-unmapped/v0 git checkout 253f456a5cb652a16a59cc4ac2e18669997d79cd # 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=mips SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> mm/page_alloc.c:90:9: warning: 'PMD_ORDER' macro redefined [-Wmacro-redefined] #define PMD_ORDER (PMD_SHIFT - PAGE_SHIFT) ^ arch/mips/include/asm/pgtable-32.h:85:9: note: previous definition is here #define PMD_ORDER aieeee_attempt_to_allocate_pmd ^ mm/page_alloc.c:3955:15: warning: no previous prototype for function 'should_fail_alloc_page' [-Wmissing-prototypes] noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order) ^ mm/page_alloc.c:3955:10: note: declare 'static' if the function is not intended to be used outside of this translation unit noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order) ^ static 2 warnings generated. -- >> mm/page_alloc.c:90:9: warning: 'PMD_ORDER' macro redefined [-Wmacro-redefined] #define PMD_ORDER (PMD_SHIFT - PAGE_SHIFT) ^ arch/mips/include/asm/pgtable-32.h:85:9: note: previous definition is here #define PMD_ORDER aieeee_attempt_to_allocate_pmd ^ 1 warning generated.
vim +/PMD_ORDER +90 mm/page_alloc.c
85 86 /* 87 * FIXME: add a proper definition in include/linux/mm.h once DAX and arch 88 * people agree on the name 89 */ > 90 #define PMD_ORDER (PMD_SHIFT - PAGE_SHIFT) 91
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |