From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 221B0D7977D for ; Sat, 31 Jan 2026 16:34:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id D3C044097C; Sat, 31 Jan 2026 16:34:25 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id mvpCMBb9FY13; Sat, 31 Jan 2026 16:34:24 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 674A54096A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1769877264; bh=WIUBsr2pVQlJZPXK7Tz01JMH5MzKJvO2+jxPnyQon4s=; h=Date:From:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=OPeWN7waHslsMQa1jLFcba3sqI1je21E2bOrgei+ctNKUT/r2GAKmZQC3mhWFEHUZ h8GPhj1/NN4jvSlZIxUXe9Up6LHRh9C4pWxVE+O5fIYnKJ0PLI/sA0XY83IW+1vrqP n2LZT5543QgGWWGTIi6IWTXfhda1k57CGkn7it7i6BD8ax2pm9Z+cOp9qQJHm5vXjS q4W+Omfrq6ia1J0Q20QUN+TsPeXNL8Me/PMCemHxymBcFfR3rIRohA7n++PwhtJIdo eSZsKewrfltjQWYPbtW0lelbZx3y+Ia80S5CRKp2AiZKHLwXef990S3lL4F6kqKBnV g23rvQ3yLzXpg== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 674A54096A; Sat, 31 Jan 2026 16:34:24 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists1.osuosl.org (Postfix) with ESMTP id 3ECF31E0 for ; Sat, 31 Jan 2026 16:34:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 318A460B35 for ; Sat, 31 Jan 2026 16:34:23 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Z3RftukZRizz for ; Sat, 31 Jan 2026 16:34:22 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=192.198.163.7; helo=mgamail.intel.com; envelope-from=lkp@intel.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 484BA60B23 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 484BA60B23 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by smtp3.osuosl.org (Postfix) with ESMTPS id 484BA60B23 for ; Sat, 31 Jan 2026 16:34:21 +0000 (UTC) X-CSE-ConnectionGUID: BlDQQR4gQ3C53DB2SWmoOQ== X-CSE-MsgGUID: cCx63VTpRGaWwEQ3SKDYbQ== X-IronPort-AV: E=McAfee;i="6800,10657,11688"; a="96563086" X-IronPort-AV: E=Sophos;i="6.21,265,1763452800"; d="scan'208";a="96563086" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2026 08:34:21 -0800 X-CSE-ConnectionGUID: 4QyvG5cbS1CNBVjK40AkeQ== X-CSE-MsgGUID: GELKly7XR12F1jp2aZ2MzQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,265,1763452800"; d="scan'208";a="214007532" Received: from lkp-server01.sh.intel.com (HELO 765f4a05e27f) ([10.239.97.150]) by fmviesa004.fm.intel.com with ESMTP; 31 Jan 2026 08:34:17 -0800 Received: from kbuild by 765f4a05e27f with local (Exim 4.98.2) (envelope-from ) id 1vmDvL-00000000eBI-1pKZ; Sat, 31 Jan 2026 16:34:15 +0000 Date: Sun, 1 Feb 2026 00:33:52 +0800 From: kernel test robot To: Haoxiang Li , anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, daniel@iogearbox.net, magnus.karlsson@intel.com, bjorn@kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Haoxiang Li , stable@vger.kernel.org Message-ID: <202602010050.pI2ZZmft-lkp@intel.com> References: <20260131055217.729048-1-lihaoxiang@isrc.iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260131055217.729048-1-lihaoxiang@isrc.iscas.ac.cn> X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1769877262; x=1801413262; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=TXGzYCfaxy+KgDZAD5l6FylHMzTOKjN6aZabO5U+s5Q=; b=hdQ/VfPxUVpQlOme6qrny900QM4q7aodZeJFWBjAF8meRGMwpX1CUBp0 OQBcQHICc8YaQEAO0eB8K8VuojyoIlTZbZPsirnO4X2H7lviTeAkECwhj 3Fpbtu+yo574H5II308OPj9NkY8a+fyoqMwIig1HeL5vSl7uhM/UDeRDl VUXHsWX5sG5i0MZt7pL9j0Ce0wAEiOpdeU9s+XX67ZWyug3rKfH973jM3 Anm2erKdGfgZZ04fqKrCsCGaBUiJ9ldaHCZHQABqDHlz+0cgNJq//FlFE yLLWF1oUn48Dfrgxz7enCGzX5hphBWDF9QldrbtpkDcskWsA3/0KNfTDN w==; X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=intel.com X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=hdQ/VfPx Subject: Re: [Intel-wired-lan] [PATCH v2] i40e: add an error handling path in i40e_xsk_pool_enable() X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" Hi Haoxiang, kernel test robot noticed the following build errors: [auto build test ERROR on tnguy-next-queue/dev-queue] [also build test ERROR on tnguy-net-queue/dev-queue linus/master v6.19-rc7 next-20260130] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Haoxiang-Li/i40e-add-an-error-handling-path-in-i40e_xsk_pool_enable/20260131-135447 base: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue patch link: https://lore.kernel.org/r/20260131055217.729048-1-lihaoxiang%40isrc.iscas.ac.cn patch subject: [Intel-wired-lan] [PATCH v2] i40e: add an error handling path in i40e_xsk_pool_enable() config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20260201/202602010050.pI2ZZmft-lkp@intel.com/config) compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260201/202602010050.pI2ZZmft-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202602010050.pI2ZZmft-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/net/ethernet/intel/i40e/i40e_xsk.c:130:2: error: call to undeclared function 'i40e_xsk_pool_disable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 130 | i40e_xsk_pool_disable(vsi, qid); | ^ drivers/net/ethernet/intel/i40e/i40e_xsk.c:130:2: note: did you mean 'i40e_xsk_pool_enable'? drivers/net/ethernet/intel/i40e/i40e_xsk.c:82:12: note: 'i40e_xsk_pool_enable' declared here 82 | static int i40e_xsk_pool_enable(struct i40e_vsi *vsi, | ^ >> drivers/net/ethernet/intel/i40e/i40e_xsk.c:141:12: error: conflicting types for 'i40e_xsk_pool_disable' 141 | static int i40e_xsk_pool_disable(struct i40e_vsi *vsi, u16 qid) | ^ drivers/net/ethernet/intel/i40e/i40e_xsk.c:130:2: note: previous implicit declaration is here 130 | i40e_xsk_pool_disable(vsi, qid); | ^ 2 errors generated. vim +/i40e_xsk_pool_disable +130 drivers/net/ethernet/intel/i40e/i40e_xsk.c 72 73 /** 74 * i40e_xsk_pool_enable - Enable/associate an AF_XDP buffer pool to a 75 * certain ring/qid 76 * @vsi: Current VSI 77 * @pool: buffer pool 78 * @qid: Rx ring to associate buffer pool with 79 * 80 * Returns 0 on success, <0 on failure 81 **/ 82 static int i40e_xsk_pool_enable(struct i40e_vsi *vsi, 83 struct xsk_buff_pool *pool, 84 u16 qid) 85 { 86 struct net_device *netdev = vsi->netdev; 87 bool if_running; 88 int err; 89 90 if (vsi->type != I40E_VSI_MAIN) 91 return -EINVAL; 92 93 if (qid >= vsi->num_queue_pairs) 94 return -EINVAL; 95 96 if (qid >= netdev->real_num_rx_queues || 97 qid >= netdev->real_num_tx_queues) 98 return -EINVAL; 99 100 err = xsk_pool_dma_map(pool, &vsi->back->pdev->dev, I40E_RX_DMA_ATTR); 101 if (err) 102 return err; 103 104 set_bit(qid, vsi->af_xdp_zc_qps); 105 106 if_running = netif_running(vsi->netdev) && i40e_enabled_xdp_vsi(vsi); 107 108 if (if_running) { 109 err = i40e_queue_pair_disable(vsi, qid); 110 if (err) 111 goto err_out; 112 113 err = i40e_realloc_rx_xdp_bi(vsi->rx_rings[qid], true); 114 if (err) 115 goto err_out; 116 117 err = i40e_queue_pair_enable(vsi, qid); 118 if (err) 119 goto err_out; 120 121 /* Kick start the NAPI context so that receiving will start */ 122 err = i40e_xsk_wakeup(vsi->netdev, qid, XDP_WAKEUP_RX); 123 if (err) 124 goto err_out; 125 } 126 127 return 0; 128 129 err_out: > 130 i40e_xsk_pool_disable(vsi, qid); 131 } 132 133 /** 134 * i40e_xsk_pool_disable - Disassociate an AF_XDP buffer pool from a 135 * certain ring/qid 136 * @vsi: Current VSI 137 * @qid: Rx ring to associate buffer pool with 138 * 139 * Returns 0 on success, <0 on failure 140 **/ > 141 static int i40e_xsk_pool_disable(struct i40e_vsi *vsi, u16 qid) 142 { 143 struct net_device *netdev = vsi->netdev; 144 struct xsk_buff_pool *pool; 145 bool if_running; 146 int err; 147 148 pool = xsk_get_pool_from_qid(netdev, qid); 149 if (!pool) 150 return -EINVAL; 151 152 if_running = netif_running(vsi->netdev) && i40e_enabled_xdp_vsi(vsi); 153 154 if (if_running) { 155 err = i40e_queue_pair_disable(vsi, qid); 156 if (err) 157 return err; 158 } 159 160 clear_bit(qid, vsi->af_xdp_zc_qps); 161 xsk_pool_dma_unmap(pool, I40E_RX_DMA_ATTR); 162 163 if (if_running) { 164 err = i40e_realloc_rx_xdp_bi(vsi->rx_rings[qid], false); 165 if (err) 166 return err; 167 err = i40e_queue_pair_enable(vsi, qid); 168 if (err) 169 return err; 170 } 171 172 return 0; 173 } 174 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki