From: kernel test robot <lkp@intel.com>
To: Xuan Zhuo <xuanzhuo@linux.alibaba.com>, netdev@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
"Michael S. Tsirkin" <mst@redhat.com>,
"Jason Wang" <jasowang@redhat.com>,
"Xuan Zhuo" <xuanzhuo@linux.alibaba.com>,
"Eugenio Pérez" <eperezma@redhat.com>,
"Andrew Lunn" <andrew+netdev@lunn.ch>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"Alexei Starovoitov" <ast@kernel.org>,
"Daniel Borkmann" <daniel@iogearbox.net>,
"Jesper Dangaard Brouer" <hawk@kernel.org>,
"John Fastabend" <john.fastabend@gmail.com>,
virtualization@lists.linux.dev, bpf@vger.kernel.org
Subject: Re: [PATCH net-next v2 05/13] virtio_ring: introduce add api for premapped
Date: Thu, 31 Oct 2024 10:19:41 +0800 [thread overview]
Message-ID: <202410310925.LuCycrTj-lkp@intel.com> (raw)
In-Reply-To: <20241030082453.97310-6-xuanzhuo@linux.alibaba.com>
Hi Xuan,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Xuan-Zhuo/virtio_ring-introduce-vring_need_unmap_buffer/20241030-162739
base: net-next/main
patch link: https://lore.kernel.org/r/20241030082453.97310-6-xuanzhuo%40linux.alibaba.com
patch subject: [PATCH net-next v2 05/13] virtio_ring: introduce add api for premapped
config: x86_64-buildonly-randconfig-003-20241031 (https://download.01.org/0day-ci/archive/20241031/202410310925.LuCycrTj-lkp@intel.com/config)
compiler: clang version 19.1.2 (https://github.com/llvm/llvm-project 7ba7d8e2f7b6445b60679da826210cdde29eaf8b)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241031/202410310925.LuCycrTj-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/202410310925.LuCycrTj-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/virtio/virtio_ring.c:2293: warning: Function parameter or struct member 'premapped' not described in 'virtqueue_add_outbuf_premapped'
>> drivers/virtio/virtio_ring.c:2364: warning: Function parameter or struct member 'premapped' not described in 'virtqueue_add_inbuf_premapped'
vim +2293 drivers/virtio/virtio_ring.c
2274
2275 /**
2276 * virtqueue_add_outbuf_premapped - expose output buffers to other end
2277 * @vq: the struct virtqueue we're talking about.
2278 * @sg: scatterlist (must be well-formed and terminated!)
2279 * @num: the number of entries in @sg readable by other side
2280 * @data: the token identifying the buffer.
2281 * @gfp: how to do memory allocations (if necessary).
2282 *
2283 * Caller must ensure we don't call this with other virtqueue operations
2284 * at the same time (except where noted).
2285 *
2286 * Returns zero or a negative error (ie. ENOSPC, ENOMEM, EIO).
2287 */
2288 int virtqueue_add_outbuf_premapped(struct virtqueue *vq,
2289 struct scatterlist *sg, unsigned int num,
2290 void *data,
2291 bool premapped,
2292 gfp_t gfp)
> 2293 {
2294 return virtqueue_add(vq, &sg, num, 1, 0, data, NULL, premapped, gfp);
2295 }
2296 EXPORT_SYMBOL_GPL(virtqueue_add_outbuf_premapped);
2297
2298 /**
2299 * virtqueue_add_inbuf - expose input buffers to other end
2300 * @vq: the struct virtqueue we're talking about.
2301 * @sg: scatterlist (must be well-formed and terminated!)
2302 * @num: the number of entries in @sg writable by other side
2303 * @data: the token identifying the buffer.
2304 * @gfp: how to do memory allocations (if necessary).
2305 *
2306 * Caller must ensure we don't call this with other virtqueue operations
2307 * at the same time (except where noted).
2308 *
2309 * Returns zero or a negative error (ie. ENOSPC, ENOMEM, EIO).
2310 */
2311 int virtqueue_add_inbuf(struct virtqueue *vq,
2312 struct scatterlist *sg, unsigned int num,
2313 void *data,
2314 gfp_t gfp)
2315 {
2316 return virtqueue_add(vq, &sg, num, 0, 1, data, NULL, false, gfp);
2317 }
2318 EXPORT_SYMBOL_GPL(virtqueue_add_inbuf);
2319
2320 /**
2321 * virtqueue_add_inbuf_ctx - expose input buffers to other end
2322 * @vq: the struct virtqueue we're talking about.
2323 * @sg: scatterlist (must be well-formed and terminated!)
2324 * @num: the number of entries in @sg writable by other side
2325 * @data: the token identifying the buffer.
2326 * @ctx: extra context for the token
2327 * @gfp: how to do memory allocations (if necessary).
2328 *
2329 * Caller must ensure we don't call this with other virtqueue operations
2330 * at the same time (except where noted).
2331 *
2332 * Returns zero or a negative error (ie. ENOSPC, ENOMEM, EIO).
2333 */
2334 int virtqueue_add_inbuf_ctx(struct virtqueue *vq,
2335 struct scatterlist *sg, unsigned int num,
2336 void *data,
2337 void *ctx,
2338 gfp_t gfp)
2339 {
2340 return virtqueue_add(vq, &sg, num, 0, 1, data, ctx, false, gfp);
2341 }
2342 EXPORT_SYMBOL_GPL(virtqueue_add_inbuf_ctx);
2343
2344 /**
2345 * virtqueue_add_inbuf_premapped - expose input buffers to other end
2346 * @vq: the struct virtqueue we're talking about.
2347 * @sg: scatterlist (must be well-formed and terminated!)
2348 * @num: the number of entries in @sg writable by other side
2349 * @data: the token identifying the buffer.
2350 * @ctx: extra context for the token
2351 * @gfp: how to do memory allocations (if necessary).
2352 *
2353 * Caller must ensure we don't call this with other virtqueue operations
2354 * at the same time (except where noted).
2355 *
2356 * Returns zero or a negative error (ie. ENOSPC, ENOMEM, EIO).
2357 */
2358 int virtqueue_add_inbuf_premapped(struct virtqueue *vq,
2359 struct scatterlist *sg, unsigned int num,
2360 void *data,
2361 void *ctx,
2362 bool premapped,
2363 gfp_t gfp)
> 2364 {
2365 return virtqueue_add(vq, &sg, num, 0, 1, data, ctx, premapped, gfp);
2366 }
2367 EXPORT_SYMBOL_GPL(virtqueue_add_inbuf_premapped);
2368
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-10-31 2:19 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-30 8:24 [PATCH net-next v2 00/13] virtio-net: support AF_XDP zero copy (tx) Xuan Zhuo
2024-10-30 8:24 ` [PATCH net-next v2 01/13] virtio_ring: introduce vring_need_unmap_buffer Xuan Zhuo
2024-10-30 8:24 ` [PATCH net-next v2 02/13] virtio_ring: split: record extras for indirect buffers Xuan Zhuo
2024-11-05 3:42 ` Jason Wang
2024-11-05 6:51 ` Xuan Zhuo
2024-11-06 1:44 ` Jason Wang
2024-11-06 5:58 ` Xuan Zhuo
2024-11-06 7:42 ` Michael S. Tsirkin
2024-11-11 1:27 ` Jason Wang
2024-10-30 8:24 ` [PATCH net-next v2 03/13] virtio_ring: packed: " Xuan Zhuo
2024-10-30 8:24 ` [PATCH net-next v2 04/13] virtio_ring: perform premapped operations based on per-buffer Xuan Zhuo
2024-11-05 4:25 ` Jason Wang
2024-10-30 8:24 ` [PATCH net-next v2 05/13] virtio_ring: introduce add api for premapped Xuan Zhuo
2024-10-31 2:19 ` kernel test robot [this message]
2024-11-05 4:28 ` Jason Wang
2024-10-30 8:24 ` [PATCH net-next v2 06/13] virtio-net: rq submits premapped per-buffer Xuan Zhuo
2024-11-05 3:23 ` Jason Wang
2024-11-05 7:09 ` Xuan Zhuo
2024-11-06 1:56 ` Jason Wang
2024-11-06 5:55 ` Xuan Zhuo
2024-10-30 8:24 ` [PATCH net-next v2 07/13] virtio_ring: remove API virtqueue_set_dma_premapped Xuan Zhuo
2024-11-05 4:29 ` Jason Wang
2024-10-30 8:24 ` [PATCH net-next v2 08/13] virtio_net: refactor the xmit type Xuan Zhuo
2024-10-30 8:24 ` [PATCH net-next v2 09/13] virtio_net: xsk: bind/unbind xsk for tx Xuan Zhuo
2024-10-30 8:24 ` [PATCH net-next v2 10/13] virtio_net: xsk: prevent disable tx napi Xuan Zhuo
2024-10-30 8:24 ` [PATCH net-next v2 11/13] virtio_net: xsk: tx: support xmit xsk buffer Xuan Zhuo
2024-10-30 8:24 ` [PATCH net-next v2 12/13] virtio_net: update tx timeout record Xuan Zhuo
2024-10-30 8:24 ` [PATCH net-next v2 13/13] virtio_net: xdp_features add NETDEV_XDP_ACT_XSK_ZEROCOPY Xuan Zhuo
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=202410310925.LuCycrTj-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=edumazet@google.com \
--cc=eperezma@redhat.com \
--cc=hawk@kernel.org \
--cc=jasowang@redhat.com \
--cc=john.fastabend@gmail.com \
--cc=kuba@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=virtualization@lists.linux.dev \
--cc=xuanzhuo@linux.alibaba.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).