From nobody Wed Dec 17 20:41:14 2025 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 9B3E7C61D92 for ; Wed, 22 Nov 2023 08:13:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235023AbjKVIN3 (ORCPT ); Wed, 22 Nov 2023 03:13:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231239AbjKVIN1 (ORCPT ); Wed, 22 Nov 2023 03:13:27 -0500 Received: from imap5.colo.codethink.co.uk (imap5.colo.codethink.co.uk [78.40.148.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70072D62; Wed, 22 Nov 2023 00:13:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codethink.co.uk; s=imap5-20230908; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/fB6eIZmKADlx9vmc7Mv1MvPBKVxtn07LHNUeWpfWWc=; b=E3cta5dn9d1WrfPbb+Hndx4N1r nuU3JUcFGuqHkH8JNDR24YWXdgVr1S+yBiAHby0aAZTFmf4sK4Ff2LBoYOMTA3bDFppkoDl3QXNfs fMwLRV/DWzIrNgH8QiZDB7HtbKpVY51x57a16n8VBEVnUGYnRjp8MxhfkuyT4uJhYlSjTg20lsqVN 5MIiTYbdK0IiC6qM8GuqzbiDo03cWqAPQsEtnH1XwtlV263zrmT46K63aH1tir/oE9EsmbhsWtiRO QQYiRmk7sT53vZ+WDIUWLHxwpVgRPci35xkJWFQsnH9a06wbHNn9AVVACLX9DC38fC+D6HYH2+2t8 /gIhQ6/Q==; Received: from [167.98.27.226] (helo=rainbowdash) by imap5.colo.codethink.co.uk with esmtpsa (Exim 4.94.2 #2 (Debian)) id 1r5iMH-004AEH-TG; Wed, 22 Nov 2023 08:13:18 +0000 Received: from ben by rainbowdash with local (Exim 4.97) (envelope-from ) id 1r5iMH-00000000boe-42Oz; Wed, 22 Nov 2023 08:13:17 +0000 From: Ben Dooks To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, Ben Dooks Subject: [PATCH] bpf: declare bpf_sk_storage_get_cg_sock_proto Date: Wed, 22 Nov 2023 08:13:17 +0000 Message-Id: <20231122081317.145355-1-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.37.2.352.g3c44437643 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: srv_ts003@codethink.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 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_so= ck_proto' was not declared. Should it be static 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_pro= to; 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; =20 struct bpf_local_storage_elem; struct bpf_sk_storage_diag; --=20 2.37.2.352.g3c44437643