From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v4 5/6] dm: add 'noexcl' option for dm-linear
Date: Thu, 04 Feb 2021 04:25:51 +0800 [thread overview]
Message-ID: <202102040423.IzdYWoEX-lkp@intel.com> (raw)
In-Reply-To: <1612367638-3794-6-git-send-email-sergei.shtepa@veeam.com>
[-- Attachment #1: Type: text/plain, Size: 2936 bytes --]
Hi Sergei,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on lwn/docs-next]
[also build test WARNING on linus/master v5.11-rc6 next-20210125]
[cannot apply to dm/for-next block/for-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Sergei-Shtepa/block-layer-interposer/20210204-001245
base: git://git.lwn.net/linux-2.6 docs-next
config: sparc-randconfig-s031-20210203 (attached as .config)
compiler: sparc-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-215-g0fb77bb6-dirty
# https://github.com/0day-ci/linux/commit/c4ced186119bdfd9330bbc8744a41d07ea477bbf
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sergei-Shtepa/block-layer-interposer/20210204-001245
git checkout c4ced186119bdfd9330bbc8744a41d07ea477bbf
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> drivers/md/dm-table.c:333:63: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted fmode_t [usertype] mode @@ got bool [usertype] non_exclusive @@
drivers/md/dm-table.c:333:63: sparse: expected restricted fmode_t [usertype] mode
drivers/md/dm-table.c:333:63: sparse: got bool [usertype] non_exclusive
vim +333 drivers/md/dm-table.c
318
319 /*
320 * This upgrades the mode on an already open dm_dev, being
321 * careful to leave things as they were if we fail to reopen the
322 * device and not to touch the existing bdev field in case
323 * it is accessed concurrently.
324 */
325 static int upgrade_mode(struct dm_dev_internal *dd, fmode_t new_mode, bool non_exclusive,
326 struct mapped_device *md)
327 {
328 int r;
329 struct dm_dev *old_dev, *new_dev;
330
331 old_dev = dd->dm_dev;
332
> 333 r = dm_get_table_device(md, dd->dm_dev->bdev->bd_dev, non_exclusive,
334 dd->dm_dev->mode | new_mode, &new_dev);
335 if (r)
336 return r;
337
338 dd->dm_dev = new_dev;
339 dm_put_table_device(md, old_dev);
340
341 return 0;
342 }
343
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 24859 bytes --]
next prev parent reply other threads:[~2021-02-03 20:25 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-03 15:53 [dm-devel] [PATCH v4 0/6] block-layer interposer Sergei Shtepa
2021-02-03 15:53 ` Sergei Shtepa
2021-02-03 15:53 ` [dm-devel] [PATCH v4 1/6] docs: device-mapper: add remap_and_filter Sergei Shtepa
2021-02-03 15:53 ` Sergei Shtepa
2021-02-04 4:15 ` [dm-devel] " Randy Dunlap
2021-02-04 4:15 ` Randy Dunlap
2021-02-04 9:44 ` [dm-devel] " Sergei Shtepa
2021-02-04 9:44 ` Sergei Shtepa
2021-02-03 15:53 ` [dm-devel] [PATCH v4 2/6] block: add blk_interposer Sergei Shtepa
2021-02-03 15:53 ` Sergei Shtepa
2021-02-03 16:18 ` [dm-devel] " Mike Snitzer
2021-02-03 16:18 ` Mike Snitzer
2021-02-04 10:06 ` [dm-devel] " Sergei Shtepa
2021-02-04 10:06 ` Sergei Shtepa
2021-02-03 15:53 ` [dm-devel] [PATCH v4 3/6] block: add blk_mq_is_queue_frozen() Sergei Shtepa
2021-02-03 15:53 ` Sergei Shtepa
2021-02-03 16:09 ` [dm-devel] " Mike Snitzer
2021-02-03 16:09 ` Mike Snitzer
2021-02-03 15:53 ` [dm-devel] [PATCH v4 4/6] dm: new ioctl DM_DEV_REMAP_CMD Sergei Shtepa
2021-02-03 15:53 ` Sergei Shtepa
2021-02-03 16:00 ` [dm-devel] " Greg KH
2021-02-03 16:00 ` Greg KH
2021-02-03 19:46 ` kernel test robot
2021-02-03 15:53 ` [dm-devel] [PATCH v4 5/6] dm: add 'noexcl' option for dm-linear Sergei Shtepa
2021-02-03 15:53 ` Sergei Shtepa
2021-02-03 20:25 ` kernel test robot [this message]
2021-02-03 15:53 ` [dm-devel] [PATCH v4 6/6] docs: device-mapper: " Sergei Shtepa
2021-02-03 15:53 ` Sergei Shtepa
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=202102040423.IzdYWoEX-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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 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.