Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3096931rdh; Mon, 27 Nov 2023 06:29:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGB14CuPub0PQU4bzC8KcOKYxruudtSLJi2SNF408LIF1mcGs4f4sKE7jh/3ADFVxMMYpgk X-Received: by 2002:a17:90b:3693:b0:281:554d:b318 with SMTP id mj19-20020a17090b369300b00281554db318mr10032413pjb.39.1701095385668; Mon, 27 Nov 2023 06:29:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701095385; cv=none; d=google.com; s=arc-20160816; b=sjY7UZEWs/Z/NG1gs/6Wmv7RZrLELLhvDc74CZ7hcig0PJNoXlK7QTUmkdixdZCcdb TV2HnsPt/vLW4Z3T6NzVQ9V4jDnrfod9iJyiZWCuZY7ui8UjfGv6sQetAaiXogTzBCx4 78xy4scWFOnGrNorEiKRWwT7Nu2zf13qG1QjZr7QyLS75zdiLR+2e9OA/MMJUYnPgcr7 AijQjFqI/xDVBeu8inT/r6cV/HIu2R6Cf4LMvMVf3vPO/8w2VNYlyd7bKVAROWWuWuI4 n0ASiVbinB3cQqMaGZapPL2hBArtTHebUvtSsK8Lz+gAhtGWgwyNgA4y6iYhLM1PK9cf kFmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=vYJiZnZcNUBYGYtSR2ZD0f7WcY21+xweimfWC3eYkvM=; fh=hQXmvO+RAE6D5FI8QmpipxgwJRKzOnpFUfQqRyrW8eo=; b=gcVms7d6rYyOVYIODIi1BGSvo/lCmE2wrIDa8Xx7YEkGnsAW+PTaj62CHRZekz2C/A F6m0JeB9LvW6dKDNIn1e2AVtfMC0ILPF6yzSOe5r5xX/yBAepvAKJTt44YOsQJetnhrK OOejkqDWwrZsHe+2jlNmuJZCZzFYUpQEwlOWh3O/gd2AJ3j/ft/5Jx54u0xXtuE7s9F1 2vmIq5cn7yOQBAEhV9XCIHOAL/Y3QIya8cb2JCfmsyaAk8Ol6Lu+5Jc1rpK0bmfNZFDe C7IDnkrSgKlqU9CMJK2/VvrGx8s3Doa/3qwgPx+QrAZdgAH5iHw84zS5R7YFPT6EAyjh zD1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@iogearbox.net header.s=default2302 header.b=DM3W8Idf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=iogearbox.net Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id nh19-20020a17090b365300b002841a9ca614si9632826pjb.187.2023.11.27.06.29.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 06:29:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@iogearbox.net header.s=default2302 header.b=DM3W8Idf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=iogearbox.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 22597802370D; Mon, 27 Nov 2023 06:29:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233741AbjK0O32 (ORCPT + 99 others); Mon, 27 Nov 2023 09:29:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233810AbjK0O3F (ORCPT ); Mon, 27 Nov 2023 09:29:05 -0500 Received: from www62.your-server.de (www62.your-server.de [213.133.104.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 706CA191; Mon, 27 Nov 2023 06:20:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=iogearbox.net; s=default2302; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=vYJiZnZcNUBYGYtSR2ZD0f7WcY21+xweimfWC3eYkvM=; b=DM3W8Idf5ng0oAfNazlB2osNZr GwbiDbEze9kGbszuzYAlmV9YOGueadSfStJQb8bc65hAWpQN/2NqRyJxFqajygiYDW2v/vnzlYZYK k2v/khuoNbSk8YqXPVf7/K/kHCXdlmM9Bumi3xNqcGL9lfk4BUu0eAKKPDBlqnmdXEQ5Z5FZMp8It 32e3vHPJy7e5/QDwpVt1c45tjv6z709Kev1/42r59QrfIwQs+X6bQy+mDolr24M7Rqvi3EvExww8S l0PYKGYbr5H/sNTbcC1oi77ThruJGAkj+o/9DeXOpatG2gcKNWbLgAE7niZ5WFgNQVdPJlNrVi459 Ae6MFZjQ==; Received: from sslproxy03.your-server.de ([88.198.220.132]) by www62.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r7cTR-000CGz-E6; Mon, 27 Nov 2023 15:20:33 +0100 Received: from [85.1.206.226] (helo=linux.home) by sslproxy03.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r7cTQ-000I1q-SK; Mon, 27 Nov 2023 15:20:32 +0100 Subject: Re: [PATCH] bpf: declare bpf_sk_storage_get_cg_sock_proto To: Ben Dooks , netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, sdf@google.com References: <20231122081317.145355-1-ben.dooks@codethink.co.uk> From: Daniel Borkmann Message-ID: Date: Mon, 27 Nov 2023 15:20:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20231122081317.145355-1-ben.dooks@codethink.co.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.10/27106/Mon Nov 27 09:39:12 2023) X-Spam-Status: No, score=-2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Mon, 27 Nov 2023 06:29:43 -0800 (PST) On 11/22/23 9:13 AM, Ben Dooks wrote: > The bpf_sk_storage_get_cg_sock_proto struct is exported from > net/core/bpf_sk_storage.c but is not decalred in any header nit: typo > file. Fix the following sparse warning by adding it to the > include/net/bpf_sk_storage.h header: > > net/core/bpf_sk_storage.c:334:29: warning: symbol 'bpf_sk_storage_get_cg_sock_proto' was not declared. Should it be static Please add Fixes tag and Cc author (sdf@google.com) as well as bpf@vger.kernel.org: Fixes: f7c6cb1d9728 ("bpf: Expose socket storage to BPF_PROG_TYPE_CGROUP_SOCK") > Signed-off-by: Ben Dooks > --- > include/net/bpf_sk_storage.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/net/bpf_sk_storage.h b/include/net/bpf_sk_storage.h > index 2926f1f00d65..043155810822 100644 > --- a/include/net/bpf_sk_storage.h > +++ b/include/net/bpf_sk_storage.h > @@ -22,6 +22,7 @@ extern const struct bpf_func_proto bpf_sk_storage_get_proto; > extern const struct bpf_func_proto bpf_sk_storage_delete_proto; > extern const struct bpf_func_proto bpf_sk_storage_get_tracing_proto; > extern const struct bpf_func_proto bpf_sk_storage_delete_tracing_proto; > +extern const struct bpf_func_proto bpf_sk_storage_get_cg_sock_proto; > > struct bpf_local_storage_elem; > struct bpf_sk_storage_diag; >