From: kernel test robot <lkp@intel.com>
To: Allison Collins <allison.henderson@oracle.com>
Cc: kbuild-all@lists.01.org, linux-xfs@vger.kernel.org,
"Darrick J. Wong" <darrick.wong@oracle.com>,
Brian Foster <bfoster@redhat.com>,
Chandan Rajendra <chandanrlinux@gmail.com>
Subject: [xfs-linux:xfs-5.9-merge 112/116] fs/xfs/libxfs/xfs_attr.c:1181:27: warning: variable 'blk' set but not used
Date: Sat, 25 Jul 2020 09:43:48 +0800 [thread overview]
Message-ID: <202007250944.cEDKiIPX%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2026 bytes --]
tree: https://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git xfs-5.9-merge
head: 9f347d7a7e0ee9b12434b9ef0ccac3a2680960de
commit: 534c7e150352361b2660ee3ea87ce91d3138d74d [112/116] xfs: Add helper function xfs_attr_node_removename_setup
config: x86_64-rhel-7.6-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout 534c7e150352361b2660ee3ea87ce91d3138d74d
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
fs/xfs/libxfs/xfs_attr.c: In function 'xfs_attr_node_removename_setup':
>> fs/xfs/libxfs/xfs_attr.c:1181:27: warning: variable 'blk' set but not used [-Wunused-but-set-variable]
1181 | struct xfs_da_state_blk *blk;
| ^~~
vim +/blk +1181 fs/xfs/libxfs/xfs_attr.c
1169
1170 /*
1171 * Initial setup for xfs_attr_node_removename. Make sure the attr is there and
1172 * the blocks are valid. Attr keys with remote blocks will be marked
1173 * incomplete.
1174 */
1175 STATIC
1176 int xfs_attr_node_removename_setup(
1177 struct xfs_da_args *args,
1178 struct xfs_da_state **state)
1179 {
1180 int error;
> 1181 struct xfs_da_state_blk *blk;
1182
1183 error = xfs_attr_node_hasname(args, state);
1184 if (error != -EEXIST)
1185 return error;
1186
1187 blk = &(*state)->path.blk[(*state)->path.active - 1];
1188 ASSERT(blk->bp != NULL);
1189 ASSERT(blk->magic == XFS_ATTR_LEAF_MAGIC);
1190
1191 if (args->rmtblkno > 0) {
1192 error = xfs_attr_leaf_mark_incomplete(args, *state);
1193 if (error)
1194 return error;
1195
1196 return xfs_attr_rmtval_invalidate(args);
1197 }
1198
1199 return 0;
1200 }
1201
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 50005 bytes --]
reply other threads:[~2020-07-25 1:46 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=202007250944.cEDKiIPX%lkp@intel.com \
--to=lkp@intel.com \
--cc=allison.henderson@oracle.com \
--cc=bfoster@redhat.com \
--cc=chandanrlinux@gmail.com \
--cc=darrick.wong@oracle.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-xfs@vger.kernel.org \
/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