From: kernel test robot <lkp@intel.com>
To: Mike Snitzer <snitzer@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
dm-devel@redhat.com, linux-kernel@vger.kernel.org
Subject: [device-mapper-dm:dm-5.19 132/132] drivers/md/dm.c:1542:4: error: use of undeclared identifier 'result'
Date: Thu, 24 Mar 2022 06:37:15 +0800 [thread overview]
Message-ID: <202203240618.diX27ri2-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git dm-5.19
head: 7f8ac95a6464b895e3d2b6175f7ee64a4c10fcfe
commit: 7f8ac95a6464b895e3d2b6175f7ee64a4c10fcfe [132/132] dm: push error handling down to __split_and_process_bio
config: x86_64-randconfig-a012 (https://download.01.org/0day-ci/archive/20220324/202203240618.diX27ri2-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 902f4708fe1d03b0de7e5315ef875006a6adc319)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/commit/?id=7f8ac95a6464b895e3d2b6175f7ee64a4c10fcfe
git remote add device-mapper-dm https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git
git fetch --no-tags device-mapper-dm dm-5.19
git checkout 7f8ac95a6464b895e3d2b6175f7ee64a4c10fcfe
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/md/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/md/dm.c:1542:4: error: use of undeclared identifier 'result'
*result = BLK_STS_NOTSUPP;
^
drivers/md/dm.c:1545:4: error: use of undeclared identifier 'result'
*result = BLK_STS_OK;
^
2 errors generated.
vim +/result +1542 drivers/md/dm.c
1508
1509 static bool __process_abnormal_io(struct clone_info *ci, struct dm_target *ti,
1510 blk_status_t *status)
1511 {
1512 unsigned num_bios;
1513
1514 if (!is_abnormal_io(ci->bio))
1515 return false;
1516
1517 num_bios = 0;
1518 switch (bio_op(ci->bio)) {
1519 case REQ_OP_DISCARD:
1520 num_bios = ti->num_discard_bios;
1521 break;
1522 case REQ_OP_SECURE_ERASE:
1523 num_bios = ti->num_secure_erase_bios;
1524 break;
1525 case REQ_OP_WRITE_SAME:
1526 num_bios = ti->num_write_same_bios;
1527 break;
1528 case REQ_OP_WRITE_ZEROES:
1529 num_bios = ti->num_write_zeroes_bios;
1530 break;
1531 default:
1532 return false;
1533 }
1534
1535 /*
1536 * Even though the device advertised support for this type of
1537 * request, that does not mean every target supports it, and
1538 * reconfiguration might also have changed that since the
1539 * check was performed.
1540 */
1541 if (!num_bios)
> 1542 *result = BLK_STS_NOTSUPP;
1543 else {
1544 __send_changing_extent_only(ci, ti, num_bios);
1545 *result = BLK_STS_OK;
1546 }
1547 return true;
1548 }
1549
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-03-23 22:38 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=202203240618.diX27ri2-lkp@intel.com \
--to=lkp@intel.com \
--cc=dm-devel@redhat.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=snitzer@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