tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 812da4d39463a060738008a46cfc9f775e4bfcf6 commit: 4f0e8eef772ee4438f304b2178bc28c958b6c13d riscv: Add numa support for riscv64 platform date: 9 weeks ago config: riscv-randconfig-r032-20210321 (attached as .config) compiler: riscv64-linux-gcc (GCC) 9.3.0 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/torvalds/linux.git/commit/?id=4f0e8eef772ee4438f304b2178bc28c958b6c13d git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 4f0e8eef772ee4438f304b2178bc28c958b6c13d # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <l...@intel.com> All errors (new ones prefixed by >>): In file included from include/linux/kernel.h:10, from include/linux/delay.h:22, from drivers/gpu/drm/bridge/analogix/analogix-anx6345.c:9: include/linux/scatterlist.h: In function 'sg_set_buf': >> arch/riscv/include/asm/page.h:133:62: error: 'max_mapnr' undeclared (first >> use in this function); did you mean 'set_max_mapnr'? 133 | (((pfn) >= ARCH_PFN_OFFSET) && (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)) | ^~~~~~~~~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ arch/riscv/include/asm/page.h:138:33: note: in expansion of macro 'pfn_valid' 138 | #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr))) | ^~~~~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ arch/riscv/include/asm/page.h:133:62: note: each undeclared identifier is reported only once for each function it appears in 133 | (((pfn) >= ARCH_PFN_OFFSET) && (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)) | ^~~~~~~~~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ arch/riscv/include/asm/page.h:138:33: note: in expansion of macro 'pfn_valid' 138 | #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr))) | ^~~~~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ -- In file included from include/linux/kernel.h:10, from include/linux/delay.h:22, from drivers/remoteproc/remoteproc_core.c:19: include/linux/scatterlist.h: In function 'sg_set_buf': >> arch/riscv/include/asm/page.h:133:62: error: 'max_mapnr' undeclared (first >> use in this function); did you mean 'set_max_mapnr'? 133 | (((pfn) >= ARCH_PFN_OFFSET) && (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)) | ^~~~~~~~~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ arch/riscv/include/asm/page.h:138:33: note: in expansion of macro 'pfn_valid' 138 | #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr))) | ^~~~~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ arch/riscv/include/asm/page.h:133:62: note: each undeclared identifier is reported only once for each function it appears in 133 | (((pfn) >= ARCH_PFN_OFFSET) && (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)) | ^~~~~~~~~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ arch/riscv/include/asm/page.h:138:33: note: in expansion of macro 'pfn_valid' 138 | #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr))) | ^~~~~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ In file included from arch/riscv/include/asm/bug.h:83, from include/linux/bug.h:5, from arch/riscv/include/asm/cmpxchg.h:9, from arch/riscv/include/asm/atomic.h:19, from include/linux/atomic.h:7, from include/linux/cpumask.h:13, from include/linux/smp.h:13, from arch/riscv/include/asm/mmiowb.h:12, from arch/riscv/include/asm/mmio.h:15, from arch/riscv/include/asm/clint.h:10, from arch/riscv/include/asm/timex.h:15, from include/linux/timex.h:65, from include/linux/time32.h:13, from include/linux/time.h:60, from include/linux/stat.h:19, from include/linux/module.h:13, from drivers/remoteproc/remoteproc_core.c:21: drivers/remoteproc/remoteproc_core.c: In function 'rproc_va_to_pa': arch/riscv/include/asm/page.h:133:62: error: 'max_mapnr' undeclared (first use in this function) 133 | (((pfn) >= ARCH_PFN_OFFSET) && (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)) | ^~~~~~~~~ include/asm-generic/bug.h:119:25: note: in definition of macro 'WARN_ON' 119 | int __ret_warn_on = !!(condition); \ | ^~~~~~~~~ arch/riscv/include/asm/page.h:138:33: note: in expansion of macro 'pfn_valid' 138 | #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr))) | ^~~~~~~~~ drivers/remoteproc/remoteproc_core.c:158:11: note: in expansion of macro 'virt_addr_valid' 158 | WARN_ON(!virt_addr_valid(cpu_addr)); | ^~~~~~~~~~~~~~~ -- In file included from include/linux/string.h:6, from include/linux/dma-mapping.h:6, from drivers/rpmsg/virtio_rpmsg_bus.c:14: include/linux/scatterlist.h: In function 'sg_set_buf': >> arch/riscv/include/asm/page.h:133:62: error: 'max_mapnr' undeclared (first >> use in this function); did you mean 'set_max_mapnr'? 133 | (((pfn) >= ARCH_PFN_OFFSET) && (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)) | ^~~~~~~~~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ arch/riscv/include/asm/page.h:138:33: note: in expansion of macro 'pfn_valid' 138 | #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr))) | ^~~~~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ arch/riscv/include/asm/page.h:133:62: note: each undeclared identifier is reported only once for each function it appears in 133 | (((pfn) >= ARCH_PFN_OFFSET) && (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)) | ^~~~~~~~~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ arch/riscv/include/asm/page.h:138:33: note: in expansion of macro 'pfn_valid' 138 | #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr))) | ^~~~~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ In file included from arch/riscv/include/asm/bug.h:83, from include/linux/bug.h:5, from arch/riscv/include/asm/current.h:13, from include/linux/sched.h:12, from include/linux/ratelimit.h:6, from include/linux/dev_printk.h:16, from include/linux/device.h:15, from include/linux/dma-mapping.h:7, from drivers/rpmsg/virtio_rpmsg_bus.c:14: drivers/rpmsg/virtio_rpmsg_bus.c: In function 'rpmsg_sg_init': >> arch/riscv/include/asm/page.h:133:62: error: 'max_mapnr' undeclared (first >> use in this function); did you mean 'set_max_mapnr'? 133 | (((pfn) >= ARCH_PFN_OFFSET) && (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)) | ^~~~~~~~~ include/asm-generic/bug.h:119:25: note: in definition of macro 'WARN_ON' 119 | int __ret_warn_on = !!(condition); \ | ^~~~~~~~~ arch/riscv/include/asm/page.h:138:33: note: in expansion of macro 'pfn_valid' 138 | #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr))) | ^~~~~~~~~ drivers/rpmsg/virtio_rpmsg_bus.c:182:12: note: in expansion of macro 'virt_addr_valid' 182 | WARN_ON(!virt_addr_valid(cpu_addr)); | ^~~~~~~~~~~~~~~ -- In file included from include/linux/init.h:5, from fs/efs/super.c:10: include/linux/scatterlist.h: In function 'sg_set_buf': >> arch/riscv/include/asm/page.h:133:62: error: 'max_mapnr' undeclared (first >> use in this function); did you mean 'set_max_mapnr'? 133 | (((pfn) >= ARCH_PFN_OFFSET) && (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)) | ^~~~~~~~~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ arch/riscv/include/asm/page.h:138:33: note: in expansion of macro 'pfn_valid' 138 | #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr))) | ^~~~~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ arch/riscv/include/asm/page.h:133:62: note: each undeclared identifier is reported only once for each function it appears in 133 | (((pfn) >= ARCH_PFN_OFFSET) && (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)) | ^~~~~~~~~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ arch/riscv/include/asm/page.h:138:33: note: in expansion of macro 'pfn_valid' 138 | #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr))) | ^~~~~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ In file included from fs/efs/super.c:18: At top level: fs/efs/efs.h:22:19: warning: 'cprt' defined but not used [-Wunused-const-variable=] 22 | static const char cprt[] = "EFS: "EFS_VERSION" - (c) 1999 Al Smith <al.sm...@aeschi.ch.eu.org>"; | ^~~~ -- In file included from include/linux/kernel.h:10, from fs/orangefs/protocol.h:2, from fs/orangefs/acl.c:8: include/linux/scatterlist.h: In function 'sg_set_buf': >> arch/riscv/include/asm/page.h:133:62: error: 'max_mapnr' undeclared (first >> use in this function); did you mean 'set_max_mapnr'? 133 | (((pfn) >= ARCH_PFN_OFFSET) && (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)) | ^~~~~~~~~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ arch/riscv/include/asm/page.h:138:33: note: in expansion of macro 'pfn_valid' 138 | #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr))) | ^~~~~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ arch/riscv/include/asm/page.h:133:62: note: each undeclared identifier is reported only once for each function it appears in 133 | (((pfn) >= ARCH_PFN_OFFSET) && (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)) | ^~~~~~~~~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ arch/riscv/include/asm/page.h:138:33: note: in expansion of macro 'pfn_valid' 138 | #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr))) | ^~~~~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ In file included from fs/orangefs/protocol.h:287, from fs/orangefs/acl.c:8: At top level: fs/orangefs/orangefs-debug.h:86:18: warning: 'num_kmod_keyword_mask_map' defined but not used [-Wunused-const-variable=] 86 | static const int num_kmod_keyword_mask_map = (int) | ^~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/kernel.h:10, from include/linux/list.h:9, from include/linux/wait.h:7, from include/linux/wait_bit.h:8, from include/linux/fs.h:6, from include/linux/highmem.h:5, from include/linux/bio.h:8, from fs/btrfs/zstd.c:8: include/linux/scatterlist.h: In function 'sg_set_buf': >> arch/riscv/include/asm/page.h:133:62: error: 'max_mapnr' undeclared (first >> use in this function); did you mean 'set_max_mapnr'? 133 | (((pfn) >= ARCH_PFN_OFFSET) && (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)) | ^~~~~~~~~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ arch/riscv/include/asm/page.h:138:33: note: in expansion of macro 'pfn_valid' 138 | #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr))) | ^~~~~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ arch/riscv/include/asm/page.h:133:62: note: each undeclared identifier is reported only once for each function it appears in 133 | (((pfn) >= ARCH_PFN_OFFSET) && (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)) | ^~~~~~~~~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ arch/riscv/include/asm/page.h:138:33: note: in expansion of macro 'pfn_valid' 138 | #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr))) | ^~~~~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ In file included from fs/btrfs/zstd.c:19: At top level: include/linux/zstd.h:798:21: warning: 'ZSTD_skippableHeaderSize' defined but not used [-Wunused-const-variable=] 798 | static const size_t ZSTD_skippableHeaderSize = 8; | ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/zstd.h:796:21: warning: 'ZSTD_frameHeaderSize_max' defined but not used [-Wunused-const-variable=] 796 | static const size_t ZSTD_frameHeaderSize_max = ZSTD_FRAMEHEADERSIZE_MAX; | ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/zstd.h:795:21: warning: 'ZSTD_frameHeaderSize_min' defined but not used [-Wunused-const-variable=] 795 | static const size_t ZSTD_frameHeaderSize_min = ZSTD_FRAMEHEADERSIZE_MIN; | ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/zstd.h:794:21: warning: 'ZSTD_frameHeaderSize_prefix' defined but not used [-Wunused-const-variable=] 794 | static const size_t ZSTD_frameHeaderSize_prefix = 5; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/kernel.h:10, from include/linux/delay.h:22, from drivers/gpu/drm/panel/panel-samsung-ld9040.c:11: include/linux/scatterlist.h: In function 'sg_set_buf': >> arch/riscv/include/asm/page.h:133:62: error: 'max_mapnr' undeclared (first >> use in this function); did you mean 'set_max_mapnr'? 133 | (((pfn) >= ARCH_PFN_OFFSET) && (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)) | ^~~~~~~~~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ arch/riscv/include/asm/page.h:138:33: note: in expansion of macro 'pfn_valid' 138 | #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr))) | ^~~~~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ arch/riscv/include/asm/page.h:133:62: note: each undeclared identifier is reported only once for each function it appears in 133 | (((pfn) >= ARCH_PFN_OFFSET) && (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)) | ^~~~~~~~~ include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~ arch/riscv/include/asm/page.h:138:33: note: in expansion of macro 'pfn_valid' 138 | #define virt_addr_valid(vaddr) (pfn_valid(virt_to_pfn(vaddr))) | ^~~~~~~~~ include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid' 137 | BUG_ON(!virt_addr_valid(buf)); | ^~~~~~~~~~~~~~~ At top level: drivers/gpu/drm/panel/panel-samsung-ld9040.c:377:35: warning: 'ld9040_ids' defined but not used [-Wunused-const-variable=] 377 | static const struct spi_device_id ld9040_ids[] = { | ^~~~~~~~~~ .. vim +133 arch/riscv/include/asm/page.h 07037db5d479f9 Palmer Dabbelt 2017-07-10 130 d95f1a542c3df3 Logan Gunthorpe 2019-08-28 131 #ifdef CONFIG_FLATMEM 07037db5d479f9 Palmer Dabbelt 2017-07-10 132 #define pfn_valid(pfn) \ 6bd33e1ece528f Christoph Hellwig 2019-10-28 @133 (((pfn) >= ARCH_PFN_OFFSET) && (((pfn) - ARCH_PFN_OFFSET) < max_mapnr)) d95f1a542c3df3 Logan Gunthorpe 2019-08-28 134 #endif 07037db5d479f9 Palmer Dabbelt 2017-07-10 135 :::::: The code at line 133 was first introduced by commit :::::: 6bd33e1ece528f67646db33bf97406b747dafda0 riscv: add nommu support :::::: TO: Christoph Hellwig <h...@lst.de> :::::: CC: Paul Walmsley <paul.walms...@sifive.com> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
.config.gz
Description: application/gzip