[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202501030012.OWkcvg5F-lkp@intel.com>
Date: Fri, 3 Jan 2025 00:37:04 +0800
From: kernel test robot <lkp@...el.com>
To: David Stevens <stevensd@...omium.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Gerd Hoffmann <kraxel@...hat.com>
Subject: drivers/virtio/virtio_dma_buf.c:41: warning: Function parameter or
struct member 'dma_buf' not described in 'virtio_dma_buf_attach'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 56e6a3499e14716b9a28a307bb6d18c10e95301e
commit: a0308938ec81cd0dca9d75833ec0dd1b8708917e virtio: add dma-buf support for exported objects
date: 4 years, 5 months ago
config: csky-randconfig-051-20240716 (https://download.01.org/0day-ci/archive/20250103/202501030012.OWkcvg5F-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250103/202501030012.OWkcvg5F-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501030012.OWkcvg5F-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/virtio/virtio_dma_buf.c:41: warning: Function parameter or struct member 'dma_buf' not described in 'virtio_dma_buf_attach'
>> drivers/virtio/virtio_dma_buf.c:41: warning: Function parameter or struct member 'attach' not described in 'virtio_dma_buf_attach'
vim +41 drivers/virtio/virtio_dma_buf.c
35
36 /**
37 * virtio_dma_buf_attach - mandatory attach callback for virtio dma-bufs
38 */
39 int virtio_dma_buf_attach(struct dma_buf *dma_buf,
40 struct dma_buf_attachment *attach)
> 41 {
42 int ret;
43 const struct virtio_dma_buf_ops *ops =
44 container_of(dma_buf->ops,
45 const struct virtio_dma_buf_ops, ops);
46
47 if (ops->device_attach) {
48 ret = ops->device_attach(dma_buf, attach);
49 if (ret)
50 return ret;
51 }
52 return 0;
53 }
54 EXPORT_SYMBOL(virtio_dma_buf_attach);
55
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists