From: kernel test robot <lkp@intel.com>
To: Christoph Hellwig <hch@lst.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [hch-xfs:xfs-crc 43/51] fs/xfs/xfs_ioend.c:154:20: warning: unused variable 'ip'
Date: Sat, 18 Jul 2026 08:55:08 +0800 [thread overview]
Message-ID: <202607180819.mPCeTJiz-lkp@intel.com> (raw)
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
reply other threads:[~2026-07-18 0:55 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=202607180819.mPCeTJiz-lkp@intel.com \
--to=lkp@intel.com \
--cc=hch@lst.de \
--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 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.