* [hch-xfs:xfs-crc 43/51] fs/xfs/xfs_ioend.c:154:20: warning: unused variable 'ip'
@ 2026-07-18 0:55 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-18 0:55 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: oe-kbuild-all
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/202607180819.mPCeTJiz-lkp@intel.com/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/202607180819.mPCeTJiz-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/202607180819.mPCeTJiz-lkp@intel.com/
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-18 0:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-18 0:55 [hch-xfs:xfs-crc 43/51] fs/xfs/xfs_ioend.c:154:20: warning: unused variable 'ip' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.