From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:openEuler-1.0-LTS 1593/1593] block/genhd.c:642:5: warning: no previous prototype for 'disk_scan_partitions'
Date: Fri, 25 Apr 2025 11:47:05 +0800 [thread overview]
Message-ID: <202504251109.LNg7C0pb-lkp@intel.com> (raw)
Hi Yu,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 08111f03f1ec65598372cfe9bf64f366d575671e
commit: cdfb5c11ad89867cd28c903369fbfebe3f36ca26 [1593/1593] block: fix kabi broken in ioctl.c
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20250425/202504251109.LNg7C0pb-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250425/202504251109.LNg7C0pb-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/202504251109.LNg7C0pb-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> block/genhd.c:642:5: warning: no previous prototype for 'disk_scan_partitions' [-Wmissing-prototypes]
642 | int disk_scan_partitions(struct gendisk *disk, fmode_t mode)
| ^~~~~~~~~~~~~~~~~~~~
block/genhd.c:533: warning: Function parameter or member 'devt' not described in 'blk_invalidate_devt'
vim +/disk_scan_partitions +642 block/genhd.c
d2bf1b6723ed0e Tejun Heo 2010-12-08 641
efc73feb2901d2 Christoph Hellwig 2023-04-07 @642 int disk_scan_partitions(struct gendisk *disk, fmode_t mode)
b9484a857f600c Yu Kuai 2022-08-09 643 {
b9484a857f600c Yu Kuai 2022-08-09 644 struct block_device *bdev;
efc73feb2901d2 Christoph Hellwig 2023-04-07 645 int ret;
b9484a857f600c Yu Kuai 2022-08-09 646
efc73feb2901d2 Christoph Hellwig 2023-04-07 647 if (!disk_part_scan_enabled(disk))
efc73feb2901d2 Christoph Hellwig 2023-04-07 648 return -EINVAL;
b9484a857f600c Yu Kuai 2022-08-09 649
b9484a857f600c Yu Kuai 2022-08-09 650 bdev = bdget_disk(disk, 0);
b9484a857f600c Yu Kuai 2022-08-09 651 if (!bdev)
efc73feb2901d2 Christoph Hellwig 2023-04-07 652 return -ENOMEM;
b9484a857f600c Yu Kuai 2022-08-09 653
b9484a857f600c Yu Kuai 2022-08-09 654 bdev->bd_invalidated = 1;
efc73feb2901d2 Christoph Hellwig 2023-04-07 655
efc73feb2901d2 Christoph Hellwig 2023-04-07 656 ret = blkdev_get(bdev, mode, NULL);
efc73feb2901d2 Christoph Hellwig 2023-04-07 657 if (!ret)
efc73feb2901d2 Christoph Hellwig 2023-04-07 658 blkdev_put(bdev, mode);
efc73feb2901d2 Christoph Hellwig 2023-04-07 659
efc73feb2901d2 Christoph Hellwig 2023-04-07 660 return ret;
fbbec472351c99 Christoph Hellwig 2023-04-07 661 }
fbbec472351c99 Christoph Hellwig 2023-04-07 662
:::::: The code at line 642 was first introduced by commit
:::::: efc73feb2901d27dcd01fa859d1378aee42850aa block: merge disk_scan_partitions and blkdev_reread_part
:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Yongqiang Liu <duanzi@zju.edu.cn>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-04-25 3:47 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=202504251109.LNg7C0pb-lkp@intel.com \
--to=lkp@intel.com \
--cc=kernel@openeuler.org \
--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.