[xiang-erofs:fixes 6/7] fs/erofs/fscache.c:201:30: error: 'struct erofs_map_dev' has no member named 'm_fscache'

kernel test robot lkp at intel.com
Fri Dec 13 09:30:51 AEDT 2024


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git fixes
head:   320077e635e75d3053b81adb7c0d53f0a89e300d
commit: 34cff83201d5d796f808bf72ab734c4aae425bff [6/7] erofs: reference `struct erofs_device_info` for erofs_map_dev
config: sparc64-randconfig-001-20241213 (https://download.01.org/0day-ci/archive/20241213/202412130644.hPflG7Qg-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241213/202412130644.hPflG7Qg-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412130644.hPflG7Qg-lkp@intel.com/

All errors (new ones prefixed by >>):

   fs/erofs/fscache.c: In function 'erofs_fscache_bio_alloc':
>> fs/erofs/fscache.c:201:30: error: 'struct erofs_map_dev' has no member named 'm_fscache'
     201 |         io->io.private = mdev->m_fscache->cookie;
         |                              ^~
   fs/erofs/fscache.c: In function 'erofs_fscache_data_read_slice':
   fs/erofs/fscache.c:319:47: error: 'struct erofs_map_dev' has no member named 'm_fscache'
     319 |         ret = erofs_fscache_read_io_async(mdev.m_fscache->cookie,
         |                                               ^


vim +201 fs/erofs/fscache.c

a1bafc3109d713e Jingbo Xu 2024-03-08  194  
a1bafc3109d713e Jingbo Xu 2024-03-08  195  struct bio *erofs_fscache_bio_alloc(struct erofs_map_dev *mdev)
a1bafc3109d713e Jingbo Xu 2024-03-08  196  {
a1bafc3109d713e Jingbo Xu 2024-03-08  197  	struct erofs_fscache_bio *io;
a1bafc3109d713e Jingbo Xu 2024-03-08  198  
a1bafc3109d713e Jingbo Xu 2024-03-08  199  	io = kmalloc(sizeof(*io), GFP_KERNEL | __GFP_NOFAIL);
a1bafc3109d713e Jingbo Xu 2024-03-08  200  	bio_init(&io->bio, NULL, io->bvecs, BIO_MAX_VECS, REQ_OP_READ);
a1bafc3109d713e Jingbo Xu 2024-03-08 @201  	io->io.private = mdev->m_fscache->cookie;
a1bafc3109d713e Jingbo Xu 2024-03-08  202  	io->io.end_io = erofs_fscache_bio_endio;
a1bafc3109d713e Jingbo Xu 2024-03-08  203  	refcount_set(&io->io.ref, 1);
a1bafc3109d713e Jingbo Xu 2024-03-08  204  	return &io->bio;
a1bafc3109d713e Jingbo Xu 2024-03-08  205  }
a1bafc3109d713e Jingbo Xu 2024-03-08  206  

:::::: The code at line 201 was first introduced by commit
:::::: a1bafc3109d713ed83f73d61ba5cb1e6fd80fdbc erofs: support compressed inodes over fscache

:::::: TO: Jingbo Xu <jefflexu at linux.alibaba.com>
:::::: CC: Gao Xiang <hsiangkao at linux.alibaba.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


More information about the Linux-erofs mailing list