Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [axboe:for-7.2/block 48/73] include/linux/blkdev.h:1750:15: error: use of undeclared identifier 'bdev'
@ 2026-06-15 16:57 kernel test robot
  2026-06-15 17:48 ` Bart Van Assche
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-06-15 16:57 UTC (permalink / raw)
  To: Bart Van Assche
  Cc: llvm, oe-kbuild-all, Jens Axboe, Hannes Reinecke,
	Christoph Hellwig, Chaitanya Kulkarni

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-15 17:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-15 16:57 [axboe:for-7.2/block 48/73] include/linux/blkdev.h:1750:15: error: use of undeclared identifier 'bdev' kernel test robot
2026-06-15 17:48 ` Bart Van Assche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox