From: kernel test robot <lkp@intel.com>
To: mingzhe.zou@easystack.cn, colyli@suse.de,
andrea.tomassetti-opensource@devo.com, bcache@lists.ewheeler.net
Cc: oe-kbuild-all@lists.linux.dev, kent.overstreet@gmail.com,
linux-bcache@vger.kernel.org, zoumingzhe@qq.com,
Dongsheng Yang <dongsheng.yang@easystack.cn>,
mingzhe <mingzhe.zou@easystack.cn>
Subject: Re: [PATCH 3/3] bcache: support overlay bcache
Date: Thu, 2 Feb 2023 01:31:41 +0800 [thread overview]
Message-ID: <202302020120.FNJ9XwCm-lkp@intel.com> (raw)
In-Reply-To: <20230201065202.17610-3-mingzhe.zou@easystack.cn>
Hi,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v6.2-rc6 next-20230201]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/mingzhe-zou-easystack-cn/bcache-submit-writeback-inflight-dirty-writes-in-batch/20230201-145421
patch link: https://lore.kernel.org/r/20230201065202.17610-3-mingzhe.zou%40easystack.cn
patch subject: [PATCH 3/3] bcache: support overlay bcache
config: alpha-randconfig-r026-20230129 (https://download.01.org/0day-ci/archive/20230202/202302020120.FNJ9XwCm-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 12.1.0
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://github.com/intel-lab-lkp/linux/commit/785b6ea709e3008e2df009d5555c80db709e6d5f
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review mingzhe-zou-easystack-cn/bcache-submit-writeback-inflight-dirty-writes-in-batch/20230201-145421
git checkout 785b6ea709e3008e2df009d5555c80db709e6d5f
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=alpha olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash drivers/md/bcache/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/md/bcache/super.c: In function 'register_bdev':
>> drivers/md/bcache/super.c:1475:41: error: implicit declaration of function 'part_to_dev'; did you mean 'part_devt'? [-Werror=implicit-function-declaration]
1475 | ret = sysfs_create_link_nowarn(&part_to_dev(bdev->bd_part)->kobj,
| ^~~~~~~~~~~
| part_devt
>> drivers/md/bcache/super.c:1475:59: error: 'struct block_device' has no member named 'bd_part'; did you mean 'bd_partno'?
1475 | ret = sysfs_create_link_nowarn(&part_to_dev(bdev->bd_part)->kobj,
| ^~~~~~~
| bd_partno
drivers/md/bcache/super.c: In function 'register_cache':
drivers/md/bcache/super.c:2403:59: error: 'struct block_device' has no member named 'bd_part'; did you mean 'bd_partno'?
2403 | ret = sysfs_create_link_nowarn(&part_to_dev(bdev->bd_part)->kobj,
| ^~~~~~~
| bd_partno
cc1: some warnings being treated as errors
vim +1475 drivers/md/bcache/super.c
1453
1454 static int register_bdev(struct cache_sb *sb, struct cache_sb_disk *sb_disk,
1455 struct block_device *bdev,
1456 struct cached_dev *dc)
1457 {
1458 const char *err = "cannot allocate memory";
1459 struct cache_set *c;
1460 int ret = -ENOMEM;
1461
1462 memcpy(&dc->sb, sb, sizeof(struct cache_sb));
1463 dc->bdev = bdev;
1464 dc->bdev->bd_holder = dc;
1465 dc->sb_disk = sb_disk;
1466
1467 if (cached_dev_init(dc, sb->block_size << 9))
1468 goto err;
1469
1470 err = "error creating kobject";
1471 if (kobject_add(&dc->disk.kobj, bdev_kobj(bdev), "bcache_bdev"))
1472 goto err;
1473
1474 err = "error creating lagacy sysfs link";
> 1475 ret = sysfs_create_link_nowarn(&part_to_dev(bdev->bd_part)->kobj,
1476 &dc->disk.kobj, "bcache");
1477 if (ret && ret != -EEXIST) {
1478 pr_err("Couldn't create lagacy disk sysfs ->bcache");
1479 goto err;
1480 }
1481
1482 if (bch_cache_accounting_add_kobjs(&dc->accounting, &dc->disk.kobj))
1483 goto err;
1484
1485 pr_info("registered backing device %pg\n", dc->bdev);
1486
1487 list_add(&dc->list, &uncached_devices);
1488 /* attach to a matched cache set if it exists */
1489 list_for_each_entry(c, &bch_cache_sets, list)
1490 bch_cached_dev_attach(dc, c, NULL);
1491
1492 if (BDEV_STATE(&dc->sb) == BDEV_STATE_NONE ||
1493 BDEV_STATE(&dc->sb) == BDEV_STATE_STALE) {
1494 err = "failed to run cached device";
1495 ret = bch_cached_dev_run(dc);
1496 if (ret)
1497 goto err;
1498 }
1499
1500 return 0;
1501 err:
1502 pr_notice("error %pg: %s\n", dc->bdev, err);
1503 bcache_device_stop(&dc->disk);
1504 return ret;
1505 }
1506
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
next prev parent reply other threads:[~2023-02-01 17:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-01 6:52 [PATCH 1/3] bcache: make writeback inflight configurable in sysfs mingzhe.zou
2023-02-01 6:52 ` [PATCH 2/3] bcache: submit writeback inflight dirty writes in batch mingzhe.zou
2023-02-01 6:52 ` [PATCH 3/3] bcache: support overlay bcache mingzhe.zou
2023-02-01 17:31 ` kernel test robot [this message]
2023-02-01 18:02 ` kernel test robot
2023-02-01 18:13 ` Eric Wheeler
2023-02-02 5:48 ` mingzhe
2023-05-30 9:12 ` Cedric de Wijs
2023-05-30 10:32 ` Coly Li
2023-02-01 21:39 ` kernel test robot
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=202302020120.FNJ9XwCm-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrea.tomassetti-opensource@devo.com \
--cc=bcache@lists.ewheeler.net \
--cc=colyli@suse.de \
--cc=dongsheng.yang@easystack.cn \
--cc=kent.overstreet@gmail.com \
--cc=linux-bcache@vger.kernel.org \
--cc=mingzhe.zou@easystack.cn \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=zoumingzhe@qq.com \
/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;
as well as URLs for NNTP newsgroup(s).