All of lore.kernel.org
 help / color / mirror / Atom feed
* [kkdwivedi:fermata 40/49] kernel/bpf/blk.c:127:17: sparse: sparse: symbol 'bpf_blk_close' was not declared. Should it be static?
@ 2026-10-02 13:47 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-02 13:47 UTC (permalink / raw)
  To: Kumar Kartikeya Dwivedi; +Cc: oe-kbuild-all

tree:   https://github.com/kkdwivedi/linux fermata
head:   babde5051be3840becf5a78de91a0b68a99f0e49
commit: be75423b67d512b1abdea0cc7cbef17ffd7e8040 [40/49] bpf: Add block device reads that complete into a coroutine
config: um-randconfig-r2307-20261001 (https://download.01.org/0day-ci/archive/20261002/202610021546.Gfji4DAs-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.4.0-5) 12.4.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261002/202610021546.Gfji4DAs-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/202610021546.Gfji4DAs-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> kernel/bpf/blk.c:127:17: sparse: sparse: symbol 'bpf_blk_close' was not declared. Should it be static?

vim +/bpf_blk_close +127 kernel/bpf/blk.c

   119	
   120	/**
   121	 * bpf_blk_close - close a device opened with bpf_blk_open()
   122	 * @major: device major number
   123	 * @minor: device minor number
   124	 *
   125	 * Reads in flight complete; reads submitted after this fail with -ENODEV.
   126	 */
 > 127	__bpf_kfunc int bpf_blk_close(u32 major, u32 minor)
   128	{
   129		struct bpf_blk_dev *d;
   130	
   131		mutex_lock(&bpf_blk_mutex);
   132		d = xa_erase(&bpf_blk_devs, MKDEV(major, minor));
   133		mutex_unlock(&bpf_blk_mutex);
   134		if (!d)
   135			return -ENODEV;
   136		call_rcu(&d->rcu, bpf_blk_dev_free);
   137		pr_info("bpf_blk: close %u:%u: %lld reads submitted, %lld completed, %lld frames resumed\n",
   138			major, minor, (long long)atomic64_read(&bpf_blk_submitted),
   139			(long long)atomic64_read(&bpf_blk_completed),
   140			(long long)atomic64_read(&bpf_blk_resumed));
   141		return 0;
   142	}
   143	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-02 13:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-02 13:47 [kkdwivedi:fermata 40/49] kernel/bpf/blk.c:127:17: sparse: sparse: symbol 'bpf_blk_close' was not declared. Should it be static? kernel test robot

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.