[isilence:rw-dmabuf-v4 1/14] drivers/dma-buf/dma-buf-io.c:28:28: sparse: sparse: symbol 'dma_buf_io_fence_ops' was not declared. Should it be static?

kernel test robot <[email protected]> Wed, 29 Jul 2026 16:36:09 +0800
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://github.com/isilence/linux rw-dmabuf-v4
head:   26dcd0ae5c87a3ada5710b14b6894ef343cec6fe
commit: bc20381e8daf85ac58811c344325d8192cde9d1e [1/14] dma-buf: introduce initial file I/O infrastructure
config: m68k-randconfig-r132-20260729 (https://download.01.org/0day-ci/archive/20260729/[email protected]/config)
compiler: m68k-linux-gcc (GCC) 14.3.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260729/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)
>> drivers/dma-buf/dma-buf-io.c:28:28: sparse: sparse: symbol 'dma_buf_io_fence_ops' was not declared. Should it be static?

vim +/dma_buf_io_fence_ops +28 drivers/dma-buf/dma-buf-io.c

    27	
  > 28	const struct dma_fence_ops dma_buf_io_fence_ops = {
    29		.get_driver_name = dma_buf_io_fence_drv_name,
    30		.get_timeline_name = dma_buf_io_fence_timeline_name,
    31	};
    32	

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