From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="C9B4P/Q1" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF10C172A; Fri, 8 Dec 2023 09:54:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702058058; x=1733594058; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=FZx7+UD1G1xFS6JL+PsazHTHrhtd1nq/OjO1Mc8K30I=; b=C9B4P/Q1f0iNT/xsRw/RxfO3udl62aSOw162KNfA95qxj3HN+jabJAyr 6+DefI6egBp9JLKXCSSFc53VRxEscB1XoAonU1UC/biJEfslbRNA2HeQN pl0gURBr/Fc4qkeOv/EoCdFZyCXqtPDmDVS1BELroVaLPFGu3cM0Vu78B KFsCri0BTK9kRHn9bXPR/1MWWAKM1JCsXpWqcRwVhk/6a3JpvAXTJPmzf bYGAFD3qvw8PMMhT0E4zxuHH7rq0E1iG4EhRnfqiDKt3QeSrwQulbW3C3 6kAaGmxNydoewj7lPpsD37IJV9cZs8ChQINPMyIkXAYyK0sf58qxvsIBh g==; X-IronPort-AV: E=McAfee;i="6600,9927,10918"; a="1526858" X-IronPort-AV: E=Sophos;i="6.04,261,1695711600"; d="scan'208";a="1526858" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2023 09:54:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10918"; a="748420305" X-IronPort-AV: E=Sophos;i="6.04,261,1695711600"; d="scan'208";a="748420305" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 08 Dec 2023 09:54:14 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rBf3E-000E9E-01; Fri, 08 Dec 2023 17:54:12 +0000 Date: Sat, 9 Dec 2023 01:53:32 +0800 From: kernel test robot To: Maciej Fijalkowski , bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org, magnus.karlsson@intel.com, bjorn@kernel.org, maciej.fijalkowski@intel.com, echaudro@redhat.com, lorenzo@kernel.org Subject: Re: [PATCH bpf 2/3] net: fix usage of multi-buffer BPF helper for ZC AF_XDP Message-ID: <202312090126.Zap0AFox-lkp@intel.com> References: <20231208112945.313687-3-maciej.fijalkowski@intel.com> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231208112945.313687-3-maciej.fijalkowski@intel.com> Hi Maciej, kernel test robot noticed the following build warnings: [auto build test WARNING on bpf/master] url: https://github.com/intel-lab-lkp/linux/commits/Maciej-Fijalkowski/xsk-recycle-buffer-in-case-Rx-queue-was-full/20231208-193306 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git master patch link: https://lore.kernel.org/r/20231208112945.313687-3-maciej.fijalkowski%40intel.com patch subject: [PATCH bpf 2/3] net: fix usage of multi-buffer BPF helper for ZC AF_XDP config: i386-randconfig-013-20231208 (https://download.01.org/0day-ci/archive/20231209/202312090126.Zap0AFox-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231209/202312090126.Zap0AFox-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/202312090126.Zap0AFox-lkp@intel.com/ All warnings (new ones prefixed by >>): net/core/filter.c: In function '__shrink_data': net/core/filter.c:4102:3: error: implicit declaration of function 'xsk_buff_get_tail'; did you mean 'xsk_buff_get_frag'? [-Werror=implicit-function-declaration] xsk_buff_get_tail(xdp)->data_end -= shrink; ^~~~~~~~~~~~~~~~~ xsk_buff_get_frag net/core/filter.c:4102:25: error: invalid type argument of '->' (have 'int') xsk_buff_get_tail(xdp)->data_end -= shrink; ^~ net/core/filter.c: In function 'shrink_data': >> net/core/filter.c:4115:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion] zc_frag = xsk_buff_get_tail(xdp); ^ net/core/filter.c:4117:4: error: implicit declaration of function 'xsk_buff_tail_del'; did you mean 'xsk_buff_alloc'? [-Werror=implicit-function-declaration] xsk_buff_tail_del(zc_frag); ^~~~~~~~~~~~~~~~~ xsk_buff_alloc cc1: some warnings being treated as errors vim +4115 net/core/filter.c 4105 4106 static bool shrink_data(struct xdp_buff *xdp, skb_frag_t *frag, int shrink) 4107 { 4108 struct xdp_mem_info *mem_info = &xdp->rxq->mem; 4109 4110 if (skb_frag_size(frag) == shrink) { 4111 struct page *page = skb_frag_page(frag); 4112 struct xdp_buff *zc_frag = NULL; 4113 4114 if (mem_info->type == MEM_TYPE_XSK_BUFF_POOL) { > 4115 zc_frag = xsk_buff_get_tail(xdp); 4116 xdp_buff_clear_frags_flag(zc_frag); 4117 xsk_buff_tail_del(zc_frag); 4118 } 4119 4120 __xdp_return(page_address(page), mem_info, false, zc_frag); 4121 return true; 4122 } 4123 __shrink_data(xdp, mem_info, frag, shrink); 4124 return false; 4125 } 4126 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki