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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B760EEB56E for ; Fri, 8 Sep 2023 21:06:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240512AbjIHVGh (ORCPT ); Fri, 8 Sep 2023 17:06:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229959AbjIHVGg (ORCPT ); Fri, 8 Sep 2023 17:06:36 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E28CDB4 for ; Fri, 8 Sep 2023 14:06:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694207192; x=1725743192; h=date:from:to:cc:subject:message-id:mime-version; bh=B2ME6j4xqfoifP/DDypeWi4FcNKJSmVZsKFYGzHWRIA=; b=FGGj8Wwsta+Gtn0Ob2nUoTnoYg+e8O6uqkjg6crj2hk605Wge8dkYVzA U15eqhBED0cBTQyPeaPX6AmGBk9orzji1cyZKScsuVe0O7Ytvqs70HeGM mMtMBcOuAzarhHBtKo8EJBjKvZOpySqS9OMPq8Zj7N8NXvQ2ggtYQJfoG wrJ8WxIuBUGSEg86bPc1CHDj/m8nX+ulsSpwr8kNly6m0XfhPKfJX5WBb VlMJNeQEFFkI9g1A45RkAAvO1F7QgcwKh73hjj42iEFQ4lD+js24A7b/t nVb503PgY8T4e9SblJpi7eGqsC//9PFvlvL71BTFOCKIeRdVpo3Sg5mnJ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10827"; a="377656122" X-IronPort-AV: E=Sophos;i="6.02,237,1688454000"; d="scan'208";a="377656122" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2023 14:06:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10827"; a="745738344" X-IronPort-AV: E=Sophos;i="6.02,237,1688454000"; d="scan'208";a="745738344" Received: from lkp-server01.sh.intel.com (HELO 59b3c6e06877) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 08 Sep 2023 14:06:30 -0700 Received: from kbuild by 59b3c6e06877 with local (Exim 4.96) (envelope-from ) id 1qeigO-0002cY-0d; Fri, 08 Sep 2023 21:06:28 +0000 Date: Sat, 9 Sep 2023 05:06:15 +0800 From: kernel test robot To: Joanne Koong Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Alexei Starovoitov Subject: net/core/filter.c:11662:17: error: no previous declaration for 'bpf_dynptr_from_xdp' Message-ID: <202309090517.TVogaAQ3-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ca9c7abf9502e108fae0e34181e01b1a20bc439f commit: 05421aecd4ed65da0dc17b0c3c13779ef334e9e5 bpf: Add xdp dynptrs date: 6 months ago config: x86_64-sof-customedconfig-avs-defconfig (https://download.01.org/0day-ci/archive/20230909/202309090517.TVogaAQ3-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/20230909/202309090517.TVogaAQ3-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/202309090517.TVogaAQ3-lkp@intel.com/ All errors (new ones prefixed by >>): net/core/filter.c:11649:17: error: no previous declaration for 'bpf_dynptr_from_skb' [-Werror=missing-declarations] __bpf_kfunc int bpf_dynptr_from_skb(struct sk_buff *skb, u64 flags, ^~~~~~~~~~~~~~~~~~~ >> net/core/filter.c:11662:17: error: no previous declaration for 'bpf_dynptr_from_xdp' [-Werror=missing-declarations] __bpf_kfunc int bpf_dynptr_from_xdp(struct xdp_buff *xdp, u64 flags, ^~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +/bpf_dynptr_from_xdp +11662 net/core/filter.c 11645 11646 __diag_push(); 11647 __diag_ignore_all("-Wmissing-prototypes", 11648 "Global functions as their definitions will be in vmlinux BTF"); 11649 __bpf_kfunc int bpf_dynptr_from_skb(struct sk_buff *skb, u64 flags, 11650 struct bpf_dynptr_kern *ptr__uninit) 11651 { 11652 if (flags) { 11653 bpf_dynptr_set_null(ptr__uninit); 11654 return -EINVAL; 11655 } 11656 11657 bpf_dynptr_init(ptr__uninit, skb, BPF_DYNPTR_TYPE_SKB, 0, skb->len); 11658 11659 return 0; 11660 } 11661 11662 __bpf_kfunc int bpf_dynptr_from_xdp(struct xdp_buff *xdp, u64 flags, 11663 struct bpf_dynptr_kern *ptr__uninit) 11664 { 11665 if (flags) { 11666 bpf_dynptr_set_null(ptr__uninit); 11667 return -EINVAL; 11668 } 11669 11670 bpf_dynptr_init(ptr__uninit, xdp, BPF_DYNPTR_TYPE_XDP, 0, xdp_get_buff_len(xdp)); 11671 11672 return 0; 11673 } 11674 __diag_pop(); 11675 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki