Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp3004287rdb; Fri, 22 Sep 2023 15:07:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGekrwyiB09KJRSwnerMjd8TVlOB2S8umW9EObv0lYKZmdcOV6HtUMMOWlmBkvaOnpimFyK X-Received: by 2002:a05:6a20:42a6:b0:13e:9dba:ea43 with SMTP id o38-20020a056a2042a600b0013e9dbaea43mr5998644pzj.2.1695420450887; Fri, 22 Sep 2023 15:07:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695420450; cv=none; d=google.com; s=arc-20160816; b=bm0VvUepxLlLPHK2qL7faCkbEZSAJYiKs3cWa/dPFsJSAsddFTmw4DPwmFzZ4LLkdl PMcxgAGQgDfC4NnofP0H+LVzJAXVL2sKfD0zfkp/KNyjU/v1XS4hIJGKABw8aDRY05s+ SF0MXxBawG/a6WFzGI9qCbXW8c4EKQxJaRO81LjF29X7NWVWvCJqtbTYsDftq9ID7w6V CGRLeldAqo4gINz+nBnakmCoggXZhMqEx3LeoDGN0Ok4/+ZlK7oIbSg0Xqu5d+9jP+rx Tordzghd0z2eD9x+v3bxplp7rHD43R0QAYMQjVei/CE9UbZegNr7THjuFQ0A1pECTUqn Qi5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=jfhJ8cCD8LbiVlnmen43E6hAzTOc5umd4YIJIcbToqg=; fh=qKRE1Whz2omjh59EEBGKlf3i1g7Y1wvwg0hy27I2Tkk=; b=l7mut3M7UBbak3H0jbpDJBRoXEFDAhjIaeU6fu6s3+IftyLpVmOfMfu8ZvKY/ecjmG Uq4keAp2AdflkqXEK9iopEka3xgbfL7YNGGtPPMoNybUPK9Yi8qiyLJ4gVJVnMzuXP0j S8OGCOFjqw3A5QnqJII4NtespBJEj55wa/LTTxwZe44twav9ZBHEbEzAMygjNROzOpBM AJwqOt0QDzdcxinvBo2hD25hmVLigzTY5KWDc84zBe2r9AgfTJKBbGDJVcjGm2Cm590w ZaWQMoFGZZnFB6vRzw8JBVM/fpgLX+5dm42q7PSYGF4Us66QvJEK0rYOKigFXPFCmU4X KGDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Fb7FhX3G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id n3-20020a632703000000b00573f703a239si4901645pgn.414.2023.09.22.15.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 15:07:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Fb7FhX3G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id DF38883B1860; Fri, 22 Sep 2023 09:49:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229541AbjIVQtO (ORCPT + 99 others); Fri, 22 Sep 2023 12:49:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232129AbjIVQtL (ORCPT ); Fri, 22 Sep 2023 12:49:11 -0400 Received: from mail-vk1-xa2a.google.com (mail-vk1-xa2a.google.com [IPv6:2607:f8b0:4864:20::a2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89E841A4 for ; Fri, 22 Sep 2023 09:49:05 -0700 (PDT) Received: by mail-vk1-xa2a.google.com with SMTP id 71dfb90a1353d-493a661d7b6so2608032e0c.1 for ; Fri, 22 Sep 2023 09:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1695401344; x=1696006144; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=jfhJ8cCD8LbiVlnmen43E6hAzTOc5umd4YIJIcbToqg=; b=Fb7FhX3Gwo2oJYCpCwiHjZ2biehwlzN7T3h2Cn5Cn3ngAzGEkUd0zbtu81byl2EuZ+ E5m++iFFUEqYV5EaUa5t0jl4hWU4Y+KIgRaFU68obNBzMsxEeb6vLsSeWK6CPwV3cLuj NFh1bUJIFHszDheON91hDTRsjmMijAIk7fIUod8M/C15S0Cp8L/3/aC3FfszTZ6/Yrwt lRVLVsNCQcOdvs8UNvmFao82J3eJsRXiEEAF98kHdIxnE1n2ijCn+l0DqHdVTCO5UB6+ 3ZuBRCoTP0HmsAqRz6hgOzlLZKK4OhvIZClmOSIQQP/lKjhlpdgBQnhXjaOEdt3zIZHN nSog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695401344; x=1696006144; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jfhJ8cCD8LbiVlnmen43E6hAzTOc5umd4YIJIcbToqg=; b=lOsI9KVFOOeB6331rJeb9mFK6Du4t1TFKB1flbkft2FO4trYufoOLKkVfrSqkusWtS MgivwDjtu5yvhrF6n7E7k3QkuBegkRGtVszOeJdwNXohjf6nKg/zgufR0zJYny0V82cM uvJIQZdlN/ahtrgncfS+kHOC7WPQ90IZp1cRx+DsxFcGDZgLwvunEVp5SVrzoVI9FGEZ D07xjiBuS7D5C6hOUCE6pYRNBKRkJzO1S4b17OGcNWDW3ZeZozrcEHLtSX/cJdf7dZmr yBF87RKwqzhWcMRyP+Cp7SA29JHQZ6i6cN9EmwvujcxLo6Xk8LQt5PN/CPVKei2E53VV hqwA== X-Gm-Message-State: AOJu0YzDjX+uWMQ6wOCUqIaAOlEgbx9YoIZwOID0cPBKroAzQ4RIenvs vV/iKJn7nDZmVpbL0kTbPZsT02hV1OYi0xHokk+jRpnTPNiz0zonoXWeSg== X-Received: by 2002:ac5:c913:0:b0:495:c8bb:f0f8 with SMTP id t19-20020ac5c913000000b00495c8bbf0f8mr1715785vkl.3.1695401344498; Fri, 22 Sep 2023 09:49:04 -0700 (PDT) MIME-Version: 1.0 References: <202309230010.Eio2q6e0-lkp@intel.com> In-Reply-To: <202309230010.Eio2q6e0-lkp@intel.com> From: Stanislav Fomichev Date: Fri, 22 Sep 2023 09:48:53 -0700 Message-ID: Subject: Re: net/core/xdp.c:725:5: error: no previous declaration for 'bpf_xdp_metadata_rx_timestamp' To: kernel test robot Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Martin KaFai Lau Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Fri, 22 Sep 2023 09:49:14 -0700 (PDT) On Fri, Sep 22, 2023 at 9:12=E2=80=AFAM kernel test robot w= rote: > > Hi Stanislav, > > FYI, the error/warning still remains. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gi= t master > head: 27bbf45eae9ca98877a2d52a92a188147cd61b07 > commit: 3d76a4d3d4e591af3e789698affaad88a5a8e8ab bpf: XDP metadata RX kfu= ncs > 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=3D1 build): (https://download.01.org/0day-ci/archi= ve/20230923/202309230010.Eio2q6e0-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new vers= ion 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_meta= data_rx_timestamp' [-Werror=3Dmissing-declarations] > int bpf_xdp_metadata_rx_timestamp(const struct xdp_md *ctx, u64 *time= stamp) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >> net/core/xdp.c:737:5: error: no previous declaration for 'bpf_xdp_meta= data_rx_hash' [-Werror=3Dmissing-declarations] > int bpf_xdp_metadata_rx_hash(const struct xdp_md *ctx, u32 *hash) > ^~~~~~~~~~~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors I don't think I'm doing anything special for these kfuncs, so, in theory, the rest of them should also have the same warning. Should we add another __diag_ignore_all("-Wmissing-declarations", ...) to kfuncs preamble? I remember there was a discussion about introducing BEGIN_KFUNC/END_KFUNC, but I don't think it went anywhere? > 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