Messages in this thread | | | Date | Tue, 14 Jun 2022 05:53:39 +0800 | From | kernel test robot <> | Subject | [arm-integrator:kernel-in-vmalloc-v5.19-rc1 27/33] arch/powerpc/include/asm/page.h:237:9: error: call to undeclared function 'WARN_ON'; ISO C99 and later do not support implicit function declarations |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.19-rc1 head: 62fa3e7c2288a1f8d5b9bb2c1f31cee3c26df806 commit: d2b930128c4dfdce5bd9470bf79277bd457df960 [27/33] powerpc: Make virt_to_pfn() a static inline config: powerpc64-randconfig-r006-20220613 (https://download.01.org/0day-ci/archive/20220614/202206140540.TntNERxC-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d378268ead93c85803c270277f0243737b536ae7) 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 powerpc64 cross compiling tool for clang build # apt-get install binutils-powerpc64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/commit/?id=d2b930128c4dfdce5bd9470bf79277bd457df960 git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.19-rc1 git checkout d2b930128c4dfdce5bd9470bf79277bd457df960 # 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=powerpc prepare
If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
In file included from arch/powerpc/kernel/asm-offsets.c:21: 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:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: >> arch/powerpc/include/asm/io.h:928:47: warning: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'const volatile void *' [-Wint-conversion] WARN_ON(IS_ENABLED(CONFIG_DEBUG_VIRTUAL) && !virt_addr_valid(address)); ^~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/page.h:245:24: note: expanded from macro 'virt_addr_valid' pfn_valid(virt_to_pfn(_addr)); \ ^~~~~ arch/powerpc/include/asm/bug.h:121:29: note: expanded from macro 'WARN_ON' if (__builtin_constant_p((x))) { \ ^ arch/powerpc/include/asm/page.h:235:62: note: passing argument to parameter 'kaddr' here static inline unsigned long virt_to_pfn(const volatile void *kaddr) ^ In file included from arch/powerpc/kernel/asm-offsets.c:21: 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:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: >> arch/powerpc/include/asm/io.h:928:47: warning: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'const volatile void *' [-Wint-conversion] WARN_ON(IS_ENABLED(CONFIG_DEBUG_VIRTUAL) && !virt_addr_valid(address)); ^~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/page.h:245:24: note: expanded from macro 'virt_addr_valid' pfn_valid(virt_to_pfn(_addr)); \ ^~~~~ arch/powerpc/include/asm/bug.h:122:10: note: expanded from macro 'WARN_ON' if (!(x)) \ ^ arch/powerpc/include/asm/page.h:235:62: note: passing argument to parameter 'kaddr' here static inline unsigned long virt_to_pfn(const volatile void *kaddr) ^ In file included from arch/powerpc/kernel/asm-offsets.c:21: 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:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: >> arch/powerpc/include/asm/io.h:928:47: warning: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'const volatile void *' [-Wint-conversion] WARN_ON(IS_ENABLED(CONFIG_DEBUG_VIRTUAL) && !virt_addr_valid(address)); ^~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/page.h:245:24: note: expanded from macro 'virt_addr_valid' pfn_valid(virt_to_pfn(_addr)); \ ^~~~~ arch/powerpc/include/asm/bug.h:132:28: note: expanded from macro 'WARN_ON' "r" ((__force long)(x))); \ ^ arch/powerpc/include/asm/bug.h:84:7: note: expanded from macro 'WARN_ENTRY' ##__VA_ARGS__ : : label) ^~~~~~~~~~~ include/linux/compiler_types.h:283:42: note: expanded from macro 'asm_volatile_goto' #define asm_volatile_goto(x...) asm goto(x) ^ arch/powerpc/include/asm/page.h:235:62: note: passing argument to parameter 'kaddr' here static inline unsigned long virt_to_pfn(const volatile void *kaddr) ^ 3 warnings generated. In file included from <built-in>:4: In file included from lib/vdso/gettimeofday.c:5: In file included from include/vdso/datapage.h:137: In file included from arch/powerpc/include/asm/vdso/gettimeofday.h:7: >> arch/powerpc/include/asm/page.h:237:9: error: call to undeclared function 'WARN_ON'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] return __pa(kaddr) >> PAGE_SHIFT; ^ arch/powerpc/include/asm/page.h:225:2: note: expanded from macro '__pa' VIRTUAL_WARN_ON((unsigned long)(x) < PAGE_OFFSET); \ ^ arch/powerpc/include/asm/page.h:210:28: note: expanded from macro 'VIRTUAL_WARN_ON' #define VIRTUAL_WARN_ON(x) WARN_ON(IS_ENABLED(CONFIG_DEBUG_VIRTUAL) && (x)) ^ >> arch/powerpc/include/asm/page.h:237:9: warning: result of comparison of constant 13835058055282163712 with expression of type 'unsigned long' is always true [-Wtautological-constant-out-of-range-compare] return __pa(kaddr) >> PAGE_SHIFT; ^~~~~~~~~~~ arch/powerpc/include/asm/page.h:225:37: note: expanded from macro '__pa' VIRTUAL_WARN_ON((unsigned long)(x) < PAGE_OFFSET); \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ arch/powerpc/include/asm/page.h:210:73: note: expanded from macro 'VIRTUAL_WARN_ON' #define VIRTUAL_WARN_ON(x) WARN_ON(IS_ENABLED(CONFIG_DEBUG_VIRTUAL) && (x)) ^ 1 warning and 1 error generated. make[2]: *** [arch/powerpc/kernel/vdso/Makefile:74: arch/powerpc/kernel/vdso/vgettimeofday-32.o] Error 1 make[2]: Target 'include/generated/vdso32-offsets.h' not remade because of errors. make[1]: *** [arch/powerpc/Makefile:422: vdso_prepare] 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 +/WARN_ON +237 arch/powerpc/include/asm/page.h
234 235 static inline unsigned long virt_to_pfn(const volatile void *kaddr) 236 { > 237 return __pa(kaddr) >> PAGE_SHIFT; 238 } 239 #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr)) 240 #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT) 241
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |