Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp432857lqd; Wed, 24 Apr 2024 06:55:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXTyZCeDNpxH0AiF2E+QE3I0+/44mkAEVL3L8angko6iZ84MmFjg9zHqF1cfnBlz4U8DFfuUHaKC8ZvyG36ExMlmbS7FzlXPOGM5x87RQ== X-Google-Smtp-Source: AGHT+IE9j5d6x4gHoT9pg4nqRMw9owryOECqVQ0wRlpZ1Yv0+ECX0f/qow/7hp6tIN91QFAAsp1U X-Received: by 2002:a17:906:39cc:b0:a52:351f:5694 with SMTP id i12-20020a17090639cc00b00a52351f5694mr2252203eje.14.1713966900058; Wed, 24 Apr 2024 06:55:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713966900; cv=pass; d=google.com; s=arc-20160816; b=daFuiiSztbE0guhCTkAI204HM+lLk+fLIG5aBfxlNb1xQ9VuYBibMk6l6/BOlnNLEI uN+820tLBE56AjRnnU0wT0Zx/VHx37oL8sMVZmp8cJ4FegPG1xtgXbGq+oCirtjzmWNZ XlHOygjf4k9PFEnuAr8/P30Yg6nzk3wlFdFO17kFpqjBo3rAcKEqWoQ+Pg4UtGApDxIC Lt7KfEP5CuwERwkJZA5GSgnlPWd5u+H/nMqSjAOojr9LorQ1SkIdsIgDQEPPOqzj8p99 i+6DBeQouVfUSIpsQxgplLoO/QflIzzEtA+dbCotJ5ysQW9VsbQ4Y7NVg1MoDJm24S7r 2X0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=rmUaRXIMcsJ+dXovFl57XFZEcsYZXt5cyjvVIml/sc4=; fh=UgCfrdtwVj9xkJjUd6VcMev7s6pD0M1ZL0u41+251LU=; b=HM8aDjzs1jh8EB8ZHaZpuePESLS9Ii5KSrB2QgYrndDwOqIJ/IVK3kzwLAc2K6C0zP 9zJnoaEZubtNES3avm72IHIL3MuFUCaxBpDISOYX4Kfz2u3/Xir6nzKVhQgnM5k+X02h y5dpSrIbH07UuAwbrW15Y8OYC52qOOAl8GrJ3SAF1s4h7L7ws0jkxOTAXstzkOFzuDU9 oE9pl8/4Y2Pf4cLW2VzeVUWF7K+T6u15mCd7ZGMo2yxFF0y9TwBB8HdnQcmi9IXD7Cln iYxzA9K87qOb2wHHDiJgtNtrKqUlE+vJRiBPKiincty6Dxd04lupGsKZ2LJbFRZ9jl2N sjKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="PtFH6AJ/"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-157016-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157016-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h21-20020a1709063b5500b00a55b01a93e5si4597973ejf.233.2024.04.24.06.54.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 06:55:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157016-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="PtFH6AJ/"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-157016-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157016-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C6BAD1F227C0 for ; Wed, 24 Apr 2024 13:54:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC44415D5A2; Wed, 24 Apr 2024 13:54:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="PtFH6AJ/" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8419415E1F3 for ; Wed, 24 Apr 2024 13:54:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713966878; cv=none; b=Ue8vPUspBCUH9ViE1XD62JJm7+v3dWMQ9aH3iR6iLo+WrbvSRSMfuGN288MGa/otjegtaRbE6C6vde5JthRNck1DZXtd6jWZoRKHsgVer+RZUjAWORsNWMCxVgrXdBKxRgZ++f2D6SDeh/exhbkZAELkfZYLkpra7lel3NYrukc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713966878; c=relaxed/simple; bh=aaAS8vV4wb9QvjU6bclPinSt2ufTufAeAaQH7gzZLTM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=O2vGnqXRKM1A60QnrunAZ4cyQ+DWHc0mYw/d56fRSbqKT5ES2bSGRLVeP75ZxYzbcPt5d8s7VoSChDV5k0e8rV7q65yqcSCBCX5VS9a8XvQ3M42lbCzOxo/hxioZ907j/RHembHur7VAQemxd1R9d9g0Ka3ebbySksYzyJZVcT0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=PtFH6AJ/; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713966876; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rmUaRXIMcsJ+dXovFl57XFZEcsYZXt5cyjvVIml/sc4=; b=PtFH6AJ/f6c6RSnBZ0ZxWLh2y+ElHbYC9CeKwROKX5qo532060+gxEnpWOuyFl4sLb0zD3 0/DXPgYctlWzyeo/Jx77MrjZrZv/ZSQpcuBeupdxTbt33oh3jqka7QnZAStSgZenPSdQgX x84sciqXq9ffgfYWGD/HygCwqnojBoU= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-208-HJzfv7WJMfWcK7JLXcIesg-1; Wed, 24 Apr 2024 09:54:33 -0400 X-MC-Unique: HJzfv7WJMfWcK7JLXcIesg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A4DDD299E740; Wed, 24 Apr 2024 13:54:32 +0000 (UTC) Received: from antares.redhat.com (unknown [10.39.193.98]) by smtp.corp.redhat.com (Postfix) with ESMTP id 218A91C0654B; Wed, 24 Apr 2024 13:54:29 +0000 (UTC) From: Adrian Moreno To: netdev@vger.kernel.org Cc: aconole@redhat.com, echaudro@redhat.com, horms@kernel.org, i.maximets@ovn.org, Adrian Moreno , Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , Jiri Pirko , Jacob Keller , Johannes Berg , Ido Schimmel , Stanislaw Gruszka , linux-kernel@vger.kernel.org Subject: [PATCH net-next 1/8] net: netlink: export genl private pointer getters Date: Wed, 24 Apr 2024 15:50:48 +0200 Message-ID: <20240424135109.3524355-2-amorenoz@redhat.com> In-Reply-To: <20240424135109.3524355-1-amorenoz@redhat.com> References: <20240424135109.3524355-1-amorenoz@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 Both "__genl_sk_priv_get" and "genl_sk_priv_get" are useful functions to handle private pointers attached to genetlink sockets. Export them so they can be used in modules. Reviewed-by: Jakub Kicinski Signed-off-by: Adrian Moreno --- net/netlink/genetlink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c index feb54c63a116..beafa415a9f5 100644 --- a/net/netlink/genetlink.c +++ b/net/netlink/genetlink.c @@ -726,6 +726,7 @@ void *__genl_sk_priv_get(struct genl_family *family, struct sock *sk) return ERR_PTR(-EINVAL); return xa_load(family->sock_privs, (unsigned long) sk); } +EXPORT_SYMBOL(__genl_sk_priv_get); /** * genl_sk_priv_get - Get family private pointer for socket @@ -764,6 +765,7 @@ void *genl_sk_priv_get(struct genl_family *family, struct sock *sk) } return priv; } +EXPORT_SYMBOL(genl_sk_priv_get); /** * genl_register_family - register a generic netlink family -- 2.44.0