Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp43177imn; Tue, 26 Jul 2022 21:51:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s4zYRrdtRTquojkiLg+I3HxPP63yXgL0fZlmATWkGHP75naMuWpuQJkQCvR7pMOMaLIWOj X-Received: by 2002:a17:90a:ea90:b0:1f2:81cd:1948 with SMTP id h16-20020a17090aea9000b001f281cd1948mr2602978pjz.172.1658897492964; Tue, 26 Jul 2022 21:51:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658897492; cv=none; d=google.com; s=arc-20160816; b=hogiaMLyj37C8cV+Bt3oX1BR8g+FMY0jrTZ7YJMPoKu1EJxWCG/PGEXS+jugaZWydn lf89uys+ki2qdnANJMPlDhYy8QbaVIEHylS2Us9vsxQ5DQTrpcVsaMlxZwK7u/Aet03p mmJKSLzUwBy0ihFHXn97uWPYQ1uU69mw3p6wINLUQRm68sokzfEGojQO7lZDiE6tNRNo pQ3bjDrkdJEumY1X8hS7BGh2HpO5C8t9G0viRp1YkKzMpPDjm8jAUM6asP4zrE52JySN DELWwraDET7oX4lSIYn1K9sqzCpGhOzm1YenyJauHbGVA9G0JeBuH2BUJSBoh5WEEzYP C4dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=tUuArV0VtXzEiIZBOKOD2hPmLpYXTkrUdMKymAfT790=; b=xmfLbIUzFJa0E2DL+EECm4fmJ2G3HoyOougrvLXyMgxHv/ipNIh5Kli1ulHzHahxSV XQ45pX55c6xz9StDr+MlOus5R82Jo8JqnMK5RHlXIrkUxbuJvZhtp6Fy6RB2//zF231o XB99e0X0CgCDGY1Tf2BK0ksqcChb5rV74+8R18rq+rSewbysI6q6oRtSns6jge9HZ7PA sRVeUFpkdmFQkkc0EAb+7glzdoa9R0ejxiQqybhfm86GUYNAcbNq+uF57dfsm6D3E8qA bp1Si6PHbLV0srVM9/zyB1hxBh8TCks3tnY6E4QTJ21T955QENn9QRGO0hS6JzKt04U3 28WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M24HPA2x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 14-20020a63164e000000b0041a4f4a2afesi17419227pgw.411.2022.07.26.21.51.16; Tue, 26 Jul 2022 21:51:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M24HPA2x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240200AbiG0Eby (ORCPT + 99 others); Wed, 27 Jul 2022 00:31:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229838AbiG0Ebw (ORCPT ); Wed, 27 Jul 2022 00:31:52 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 925023B960 for ; Tue, 26 Jul 2022 21:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658896309; x=1690432309; h=date:from:to:cc:subject:message-id:mime-version; bh=MPLetgUkdxZGYEdy5Oe+aGCJFgFu03LZ44fkIcokPsA=; b=M24HPA2xDSNNFDQPEH4cPP5wMknpyuFqC4ZU9t/cILfXhBmdHY9yidDr /OEdDlIwpPxVPcSHIVoYGl92+iqXp2HvCHG8I/qcx6vNKvJMiTHErzBAP OwdDRGGfR7ZBkoXPG1J5k9qH6/Xetdsqs5+axtXm7W1C2ckMtcWCRv18m oW9tYS0FtexHek5/LGMGwJqGHUrDmHZnsNnqbAYE6IBAndYbYAWshiHld lVDPRm09ZQPaiR9yBwAXRfZJZbh0eey0HP+WZKsh92lcRNsDFmIx93MNE J47gDSlsutRpwxq82sAuwn93JeVkdPneTNoN5wwc/jueICr84feuqx/ED Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10420"; a="271181178" X-IronPort-AV: E=Sophos;i="5.93,194,1654585200"; d="scan'208";a="271181178" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2022 21:31:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,194,1654585200"; d="scan'208";a="927638092" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 26 Jul 2022 21:31:47 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oGYi2-0008Jy-3B; Wed, 27 Jul 2022 04:31:46 +0000 Date: Wed, 27 Jul 2022 12:31:18 +0800 From: kernel test robot To: Pavel Begunkov Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Jens Axboe Subject: [axboe-block:for-5.20/io_uring-zerocopy-send 23/23] io_uring/notif.c:52:23: error: implicit declaration of function 'io_alloc_req_refill'; did you mean 'io_rsrc_refs_refill'? Message-ID: <202207271204.TWHjABcr-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-5.20/io_uring-zerocopy-send head: fbe6f6bc3210e853aab74f20da776c15c5b052fe commit: fbe6f6bc3210e853aab74f20da776c15c5b052fe [23/23] io_uring/zc: notification completion optimisation config: x86_64-randconfig-a013 (https://download.01.org/0day-ci/archive/20220727/202207271204.TWHjABcr-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?id=fbe6f6bc3210e853aab74f20da776c15c5b052fe git remote add axboe-block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git git fetch --no-tags axboe-block for-5.20/io_uring-zerocopy-send git checkout fbe6f6bc3210e853aab74f20da776c15c5b052fe # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): In file included from include/linux/export.h:33, from include/linux/linkage.h:7, from include/linux/kernel.h:17, from io_uring/notif.c:1: io_uring/notif.c: In function 'io_alloc_notif': >> io_uring/notif.c:52:23: error: implicit declaration of function 'io_alloc_req_refill'; did you mean 'io_rsrc_refs_refill'? [-Werror=implicit-function-declaration] 52 | if (unlikely(!io_alloc_req_refill(ctx))) | ^~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:78:45: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ >> io_uring/notif.c:54:17: error: implicit declaration of function 'io_alloc_req'; did you mean 'xa_alloc_irq'? [-Werror=implicit-function-declaration] 54 | notif = io_alloc_req(ctx); | ^~~~~~~~~~~~ | xa_alloc_irq >> io_uring/notif.c:54:15: warning: assignment to 'struct io_kiocb *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 54 | notif = io_alloc_req(ctx); | ^ cc1: some warnings being treated as errors vim +52 io_uring/notif.c > 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 8 #include "io_uring.h" 9 #include "notif.h" 10 #include "rsrc.h" 11 12 static void __io_notif_complete_tw(struct io_kiocb *notif, bool *locked) 13 { 14 struct io_notif_data *nd = io_notif_to_data(notif); 15 struct io_ring_ctx *ctx = notif->ctx; 16 17 if (nd->account_pages && ctx->user) { 18 __io_unaccount_mem(ctx->user, nd->account_pages); 19 nd->account_pages = 0; 20 } 21 io_req_task_complete(notif, locked); 22 } 23 24 static inline void io_notif_complete(struct io_kiocb *notif) 25 __must_hold(¬if->ctx->uring_lock) 26 { 27 bool locked = true; 28 29 __io_notif_complete_tw(notif, &locked); 30 } 31 32 static void io_uring_tx_zerocopy_callback(struct sk_buff *skb, 33 struct ubuf_info *uarg, 34 bool success) 35 { 36 struct io_notif_data *nd = container_of(uarg, struct io_notif_data, uarg); 37 struct io_kiocb *notif = cmd_to_io_kiocb(nd); 38 39 if (refcount_dec_and_test(&uarg->refcnt)) { 40 notif->io_task_work.func = __io_notif_complete_tw; 41 io_req_task_work_add(notif); 42 } 43 } 44 45 struct io_kiocb *io_alloc_notif(struct io_ring_ctx *ctx, 46 struct io_notif_slot *slot) 47 __must_hold(&ctx->uring_lock) 48 { 49 struct io_kiocb *notif; 50 struct io_notif_data *nd; 51 > 52 if (unlikely(!io_alloc_req_refill(ctx))) 53 return NULL; > 54 notif = io_alloc_req(ctx); 55 notif->opcode = IORING_OP_NOP; 56 notif->flags = 0; 57 notif->file = NULL; 58 notif->task = current; 59 io_get_task_refs(1); 60 notif->rsrc_node = NULL; 61 io_req_set_rsrc_node(notif, ctx, 0); 62 notif->cqe.user_data = slot->tag; 63 notif->cqe.flags = slot->seq++; 64 notif->cqe.res = 0; 65 66 nd = io_notif_to_data(notif); 67 nd->account_pages = 0; 68 nd->uarg.flags = SKBFL_ZEROCOPY_FRAG | SKBFL_DONT_ORPHAN; 69 nd->uarg.callback = io_uring_tx_zerocopy_callback; 70 /* master ref owned by io_notif_slot, will be dropped on flush */ 71 refcount_set(&nd->uarg.refcnt, 1); 72 return notif; 73 } 74 -- 0-DAY CI Kernel Test Service https://01.org/lkp