Linux-EROFS Archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Chunhai Guo <guochunhai@vivo.com>
Cc: llvm@lists.linux.dev, linux-erofs@lists.ozlabs.org,
	oe-kbuild-all@lists.linux.dev
Subject: [xiang-erofs:dev-test 2/2] fs/erofs/super.c:876:6: error: assigning to 'int' from incompatible type 'void'
Date: Tue, 2 Apr 2024 17:07:04 +0800	[thread overview]
Message-ID: <202404021750.7EQaoKAb-lkp@intel.com> (raw)

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-lkp@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-lkp@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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202404021750.7EQaoKAb-lkp@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

                 reply	other threads:[~2024-04-02  9:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202404021750.7EQaoKAb-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=guochunhai@vivo.com \
    --cc=linux-erofs@lists.ozlabs.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).