Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2823073rdb; Fri, 22 Sep 2023 09:14:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIwcyxoarVQ2nurwpjNMyYdqi6ozSOe6/XofU/iB2CMArwz4F6YopDAlioicq6pDwqYSFi X-Received: by 2002:a17:902:f68f:b0:1c5:a60c:4ee with SMTP id l15-20020a170902f68f00b001c5a60c04eemr8794801plg.47.1695399260849; Fri, 22 Sep 2023 09:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695399260; cv=none; d=google.com; s=arc-20160816; b=IQJPGHPdKcsyfl93l+LYDwwhMQ6BXNV0tyI22VNnlCgucZwxH297aokxJhr4WIwZ+Z 1fBjrYOnE3iisI8Db/2VYtm6P/63+S02jUgVzFz7KNjT4vAZg+r8lFB7sJ7qDQDEFLIS EhLLISeaKky4FKi0ih4JCCgT1WtMV9EcYllUyUUicMGg2MLLw4WKCp72YSEMrrwG+Et2 tpbC0igyACEqS2x5SIE+xS2psV5kC3HJQW4R93+4RhkmIveRLf+NUaY+YEsPo0s9Ad6X ZbNC/aC1JY1jWrK8byuRrCwQ/t6nwoPGgwmElhLlfPiNsqkpALvmwkW18ag6q/yg5l+e pxBg== 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=XqSpLA4/t8Ijl1+m+yxXueq5JN2cWPuzlfdUdlSASvM=; fh=VF/J/daxB5EXA9qQx7TQ3zHVAY5u7eFt1RHKulbpdVA=; b=SxhD16EW/zPr2N7GPESwdqFD41DQlcTltP6T7XNgKa+TlyZ4H+2/LlG0fbIZWdiQb5 xlvOZqLvUbo7PFWZCN11zspzV5rBMcsgs6+ZTwUyAVteGjiEEW8JGrgVOPqGTDwMMp+E duk73NK0UVex7/yZHIbaeUwYKDppEydCNtC3QfcOnPCt7hc1rhsh7top56JbusyvcYOk DSgvODZYnpacu8RV2NpQLmcFpW50DN2/7LEAOlWchdwkhbSQ7mwNeerHlupdKxT3iVh1 F7mqbhXFSzbT7mxo7pvddQLIZ0Nx4DxplKGVXSJdrD+YRTdJcnW+ycX9ppcVwDgehPyQ leJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bZT4gNFo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id u17-20020a170903125100b001b89fd6bec4si4420800plh.144.2023.09.22.09.14.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 09:14:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bZT4gNFo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id D3C9C8325EB1; Fri, 22 Sep 2023 09:12:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232140AbjIVQML (ORCPT + 99 others); Fri, 22 Sep 2023 12:12:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231604AbjIVQMK (ORCPT ); Fri, 22 Sep 2023 12:12:10 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9026D99 for ; Fri, 22 Sep 2023 09:12:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695399124; x=1726935124; h=date:from:to:cc:subject:message-id:mime-version; bh=+1ZYtVBUsifH9zjdqoNORhsulycKouwOTBpUcx6Yzrc=; b=bZT4gNFoTU0w8Kwd3G+LRzkmFEiHIRBMEUoYoaKDMgGPJqQNHxO7qs3p 0H8Uu5JJoMhaVPgIcrnvkc5ykfNbMjtz5NlZhjiG3xVGK4dnd5wFjuqMF fokNEboulwvH5N34kPWJunBfA3Ij02QtsgctbzOy7o+tawoPCSupnv1lD Jn+iRS5LTL/5JDl049WYBUywaPXaLu1D/htlnujq5mwJ2UHglGZtBCj0n kYUgwF1rWdqMTJSfZS2w/AoL3e1G04Sewj+PFm6twTpCtRe0O7xG1+7lT 982klDpwBHh6P1C5cAeKqbbxdR+9ZqVDWSUmFRxy4U6+74TTu8esfaKJH g==; X-IronPort-AV: E=McAfee;i="6600,9927,10841"; a="380768241" X-IronPort-AV: E=Sophos;i="6.03,167,1694761200"; d="scan'208";a="380768241" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2023 09:05:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10841"; a="813110592" X-IronPort-AV: E=Sophos;i="6.03,167,1694761200"; d="scan'208";a="813110592" Received: from lkp-server02.sh.intel.com (HELO 493f6c7fed5d) ([10.239.97.151]) by fmsmga008.fm.intel.com with ESMTP; 22 Sep 2023 09:05:38 -0700 Received: from kbuild by 493f6c7fed5d with local (Exim 4.96) (envelope-from ) id 1qjieu-0000wf-17; Fri, 22 Sep 2023 16:05:36 +0000 Date: Sat, 23 Sep 2023 00:05:22 +0800 From: kernel test robot To: Stanislav Fomichev Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Martin KaFai Lau Subject: net/core/xdp.c:725:5: error: no previous declaration for 'bpf_xdp_metadata_rx_timestamp' Message-ID: <202309230010.Eio2q6e0-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 22 Sep 2023 09:12:16 -0700 (PDT) Hi Stanislav, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 27bbf45eae9ca98877a2d52a92a188147cd61b07 commit: 3d76a4d3d4e591af3e789698affaad88a5a8e8ab bpf: XDP metadata RX kfuncs date: 8 months ago config: x86_64-sof-customedconfig-avs-defconfig (https://download.01.org/0day-ci/archive/20230923/202309230010.Eio2q6e0-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/20230923/202309230010.Eio2q6e0-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/202309230010.Eio2q6e0-lkp@intel.com/ All errors (new ones prefixed by >>): >> net/core/xdp.c:725:5: error: no previous declaration for 'bpf_xdp_metadata_rx_timestamp' [-Werror=missing-declarations] int bpf_xdp_metadata_rx_timestamp(const struct xdp_md *ctx, u64 *timestamp) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> net/core/xdp.c:737:5: error: no previous declaration for 'bpf_xdp_metadata_rx_hash' [-Werror=missing-declarations] int bpf_xdp_metadata_rx_hash(const struct xdp_md *ctx, u32 *hash) ^~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +/bpf_xdp_metadata_rx_timestamp +725 net/core/xdp.c 713 714 __diag_push(); 715 __diag_ignore_all("-Wmissing-prototypes", 716 "Global functions as their definitions will be in vmlinux BTF"); 717 718 /** 719 * bpf_xdp_metadata_rx_timestamp - Read XDP frame RX timestamp. 720 * @ctx: XDP context pointer. 721 * @timestamp: Return value pointer. 722 * 723 * Returns 0 on success or ``-errno`` on error. 724 */ > 725 int bpf_xdp_metadata_rx_timestamp(const struct xdp_md *ctx, u64 *timestamp) 726 { 727 return -EOPNOTSUPP; 728 } 729 730 /** 731 * bpf_xdp_metadata_rx_hash - Read XDP frame RX hash. 732 * @ctx: XDP context pointer. 733 * @hash: Return value pointer. 734 * 735 * Returns 0 on success or ``-errno`` on error. 736 */ > 737 int bpf_xdp_metadata_rx_hash(const struct xdp_md *ctx, u32 *hash) 738 { 739 return -EOPNOTSUPP; 740 } 741 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki