[hch-xfs:xfs-crc 43/51] fs/xfs/xfs_ioend.c:154:20: warning: unused variable 'ip'

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   git://git.infradead.org/users/hch/xfs xfs-crc
head:   ef3d55d014b3a800421b9dae3ac182577bfe2bd7
commit: d2fb31974d0bb17f4f1fdc1de60e0a9ca53e6480 [43/51] xfs: add support for writing with data checksums
config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20260718/[email protected]/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 5c0dfced1adc55429e32b1db08570abd3a219d85)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260718/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

>> fs/xfs/xfs_ioend.c:154:20: warning: unused variable 'ip' [-Wunused-variable]
     154 |         struct xfs_inode        *ip = XFS_I(inode);
         |                                  ^~
   1 warning generated.


vim +/ip +154 fs/xfs/xfs_ioend.c

   145	
   146	int
   147	xfs_ioend_submit_read_sync(
   148		struct bio		*bio,
   149		struct inode		*inode,
   150		loff_t			file_offset,
   151		const struct iomap	*iomap,
   152		u16			flags)
   153	{
 > 154		struct xfs_inode	*ip = XFS_I(inode);
   155		struct iomap_ioend	*ioend;
   156		int			error;
   157	
   158		ASSERT(xfs_is_rtcsum_inode(ip));
   159		ASSERT(!(flags & IOMAP_IOEND_DIRECT));
   160		ASSERT(!(iomap->flags & IOMAP_F_INTEGRITY));
   161	
   162		ioend = iomap_init_ioend(inode, bio, file_offset, flags);
   163		if (!xfs_rtcsum_prepare_read(ioend))
   164			return blk_status_to_errno(bio->bi_status);
   165		error = submit_bio_wait(bio);
   166		error = xfs_rtcsum_verify_ioend(ioend, error);
   167		iomap_csum_free(ioend);
   168		return error;
   169	}
   170	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.