tree: https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git dev-test head: 38654ff32711761d45ff138634e559a98003c31c commit: 38654ff32711761d45ff138634e559a98003c31c [2/2] erofs: rename per-CPU buffers to global buffer pool and make it configurable config: hexagon-randconfig-001-20240402 (https://download.01.org/0day-ci/archive/20240402/202404021750.7eqaokab-...@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240402/202404021750.7eqaokab-...@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <l...@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202404021750.7eqaokab-...@intel.com/ All errors (new ones prefixed by >>): In file included from fs/erofs/super.c:10: In file included from include/linux/fs_context.h:14: In file included from include/linux/security.h:35: In file included from include/linux/bpf.h:31: 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/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from fs/erofs/super.c:10: In file included from include/linux/fs_context.h:14: In file included from include/linux/security.h:35: In file included from include/linux/bpf.h:31: 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/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from fs/erofs/super.c:10: In file included from include/linux/fs_context.h:14: In file included from include/linux/security.h:35: In file included from include/linux/bpf.h:31: 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/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ >> fs/erofs/super.c:876:6: error: assigning to 'int' from incompatible type >> 'void' err = z_erofs_gbuf_init(); ^ ~~~~~~~~~~~~~~~~~~~ 6 warnings and 1 error generated. vim +876 fs/erofs/super.c 850 851 static int __init erofs_module_init(void) 852 { 853 int err; 854 855 erofs_check_ondisk_layout_definitions(); 856 857 erofs_inode_cachep = kmem_cache_create("erofs_inode", 858 sizeof(struct erofs_inode), 0, 859 SLAB_RECLAIM_ACCOUNT | SLAB_ACCOUNT, 860 erofs_inode_init_once); 861 if (!erofs_inode_cachep) 862 return -ENOMEM; 863 864 err = erofs_init_shrinker(); 865 if (err) 866 goto shrinker_err; 867 868 err = z_erofs_lzma_init(); 869 if (err) 870 goto lzma_err; 871 872 err = z_erofs_deflate_init(); 873 if (err) 874 goto deflate_err; 875 > 876 err = z_erofs_gbuf_init(); 877 if (err) 878 goto gbuf_err; 879 880 err = z_erofs_init_zip_subsystem(); 881 if (err) 882 goto zip_err; 883 884 err = erofs_init_sysfs(); 885 if (err) 886 goto sysfs_err; 887 888 err = register_filesystem(&erofs_fs_type); 889 if (err) 890 goto fs_err; 891 892 return 0; 893 894 fs_err: 895 erofs_exit_sysfs(); 896 sysfs_err: 897 z_erofs_exit_zip_subsystem(); 898 zip_err: 899 z_erofs_gbuf_exit(); 900 gbuf_err: 901 z_erofs_deflate_exit(); 902 deflate_err: 903 z_erofs_lzma_exit(); 904 lzma_err: 905 erofs_exit_shrinker(); 906 shrinker_err: 907 kmem_cache_destroy(erofs_inode_cachep); 908 return err; 909 } 910 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki