From: kernel test robot <lkp@intel.com>
To: Bart Van Assche <bvanassche@acm.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Jens Axboe <axboe@kernel.dk>, Hannes Reinecke <hare@kernel.org>,
Christoph Hellwig <hch@lst.de>,
Chaitanya Kulkarni <kch@nvidia.com>
Subject: [axboe:for-7.2/block 48/73] include/linux/blkdev.h:1750:15: error: use of undeclared identifier 'bdev'
Date: Tue, 16 Jun 2026 00:57:37 +0800 [thread overview]
Message-ID: <202606160003.4zv1ceMM-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux.git for-7.2/block
head: c7c76f9232bd34835d821f14abdc5fafc17bc938
commit: 3033c86fa1a8bb31d0a13738fe8c5f9e5bbaf98a [48/73] block/bdev: Annotate the blk_holder_ops callback functions
config: x86_64-randconfig-075-20260615 (https://download.01.org/0day-ci/archive/20260616/202606160003.4zv1ceMM-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260616/202606160003.4zv1ceMM-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/202606160003.4zv1ceMM-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/sched/core.c:43:
>> include/linux/blkdev.h:1750:15: error: use of undeclared identifier 'bdev'
1750 | __releases(&bdev->bd_holder_lock);
| ^~~~
include/linux/blkdev.h:1756:15: error: use of undeclared identifier 'bdev'
1756 | __releases(&bdev->bd_holder_lock);
| ^~~~
include/linux/blkdev.h:1762:15: error: use of undeclared identifier 'bdev'
1762 | __releases(&bdev->bd_holder_lock);
| ^~~~
include/linux/blkdev.h:1768:15: error: use of undeclared identifier 'bdev'
1768 | __releases(&bdev->bd_holder_lock);
| ^~~~
kernel/sched/core.c:8054:12: warning: array index -1 is before the beginning of the array [-Warray-bounds]
8054 | preempt_modes[preempt_dynamic_mode] : "undef",
| ^ ~~~~~~~~~~~~~~~~~~~~
kernel/sched/core.c:8029:1: note: array 'preempt_modes' declared here
8029 | const char *preempt_modes[] = {
| ^
1 warning and 4 errors generated.
vim +/bdev +1750 include/linux/blkdev.h
1747
1748 struct blk_holder_ops {
1749 void (*mark_dead)(struct block_device *bdev, bool surprise)
> 1750 __releases(&bdev->bd_holder_lock);
1751
1752 /*
1753 * Sync the file system mounted on the block device.
1754 */
1755 void (*sync)(struct block_device *bdev)
1756 __releases(&bdev->bd_holder_lock);
1757
1758 /*
1759 * Freeze the file system mounted on the block device.
1760 */
1761 int (*freeze)(struct block_device *bdev)
1762 __releases(&bdev->bd_holder_lock);
1763
1764 /*
1765 * Thaw the file system mounted on the block device.
1766 */
1767 int (*thaw)(struct block_device *bdev)
1768 __releases(&bdev->bd_holder_lock);
1769 };
1770
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-06-15 16:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-15 16:57 kernel test robot [this message]
2026-06-15 17:48 ` [axboe:for-7.2/block 48/73] include/linux/blkdev.h:1750:15: error: use of undeclared identifier 'bdev' Bart Van Assche
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=202606160003.4zv1ceMM-lkp@intel.com \
--to=lkp@intel.com \
--cc=axboe@kernel.dk \
--cc=bvanassche@acm.org \
--cc=hare@kernel.org \
--cc=hch@lst.de \
--cc=kch@nvidia.com \
--cc=llvm@lists.linux.dev \
--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.