Message ID | 20230510154803.189096-5-miquel.raynal@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3730661vqo; Wed, 10 May 2023 08:58:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ73bQ4Mt+k/K3Rsa7/ewGYc2/JZqauMGcCgMwL4flZ7UC2N3O/2AipkGR2yfovpg9SeF3It X-Received: by 2002:a17:90a:4214:b0:250:6c4d:e406 with SMTP id o20-20020a17090a421400b002506c4de406mr12476367pjg.22.1683734285843; Wed, 10 May 2023 08:58:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683734285; cv=none; d=google.com; s=arc-20160816; b=kpO1L7mE8orYCXzmWmBVQCqsZsdYn9JoDxkaUbNGc10q2FdgxmYh2ZQqSkfCmQC93Z LZhcnd9fFciHU7o/84MAuW1kx1RYsk5B23/ue7E2pE/L6K1p9cwBpctbdNfBRYijueQO S9VRry2kdPfuiSNU7/eDJdxGdIiFVS02wDLKqZQUqqQ8AJqhMoc2Pq0v/7eRKRl8gJz5 jCYrcsMDznwXDgw2iQDuc3bhk9B0fVsDCpBtu0CqosJtRL/CC8fGjLY8p6RM4alF8mL8 wc6F2kBugUoJChyiZmLYHQ9bN4kYspiX6YjEzpyYRM1PQVfd2JAFrd20MwXibl9md7uV YBZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GiIl6qNilxI/2RMNtfGSfbFmkF8Ao7IWY//F7MAhvic=; b=dgco4dZrQ8XJlfQtP2cYXmtrBf8lXQBmqs96mcgxtgam+KgMk/rUovyPswwgbZ6Nei /R8ZK8gK0yZWrvnJbNO7R73TMJLU4iAG3Q6CLVvmBwCC5swpnKwiWyJ5gZ0Vs+8xKpor rDxA238ski6maFfhuPbMt0xUEHxBQLK2I1qL3w2cYy29RHT/pXuGS4+BCrl8gA/ITKZ/ Bf312dGsqZZRHeHe4D10dtZxUtFZj7oaHBIT+MS6hpKZvDi4bcXN3k2GoJ5NmioZQZVE 6SXnFqLV0SaT/2QmMfMtH1TCSk/zqOGpmQiiYZZySYrd2fNgf2zA9fJukGPPjcEmqZmj 1Mcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="Pu/WyXGf"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n7-20020a17090a9f0700b00247bd63c3c5si18094765pjp.37.2023.05.10.08.57.28; Wed, 10 May 2023 08:58:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="Pu/WyXGf"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237690AbjEJPs2 (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Wed, 10 May 2023 11:48:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237470AbjEJPsM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 10 May 2023 11:48:12 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34AF3E7C; Wed, 10 May 2023 08:48:11 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id CA6E3C000B; Wed, 10 May 2023 15:48:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1683733689; 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=GiIl6qNilxI/2RMNtfGSfbFmkF8Ao7IWY//F7MAhvic=; b=Pu/WyXGfzdCJsrmdb5oy8iGLmhu5ui/4pT0SytexaZmI/s4yZRRNG5oiAo6Hsy7uTKPE6s VNX9AuNiDlfNYJULsgEMGfR/K+crTTQVolBSzasPXilC7nEweltsmAsq/CyriYhIBoK085 vfJf3I5J0xJ8sW2S7X7cI7KuHf/2ZNG0K2/IYu/l/XYg+GXjoXdrIqoUBDQuIoAL4Gy+39 6IbNTbR8nWI3YIbqwMOqDpbFzlo/RKt5eqiwGnJGmywyrWeY7xa42pfjiq9PHr2pIfZ4XV fxqZ5euP0ZvHd8VMEB3OLO3Tl1xy8/IF7N/IxM4xTl9VBxdTYgH3zeI/HHMG/A== From: Miquel Raynal <miquel.raynal@bootlin.com> To: Rob Herring <robh+dt@kernel.org> Cc: Frank Rowand <frowand.list@gmail.com>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, devicetree@vger.kernel.org, <linux-kernel@vger.kernel.org>, linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, Thierry Reding <thierry.reding@gmail.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Mikko Perttunen <mperttunen@nvidia.com>, Miquel Raynal <miquel.raynal@bootlin.com> Subject: [PATCH 4/5] of: module: Export of_uevent() Date: Wed, 10 May 2023 17:48:02 +0200 Message-Id: <20230510154803.189096-5-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230510154803.189096-1-miquel.raynal@bootlin.com> References: <20230510154803.189096-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765523362208888740?= X-GMAIL-MSGID: =?utf-8?q?1765523362208888740?= |
Series |
of: More 'device' vs. 'module' cleanups
|
|
Commit Message
Miquel Raynal
May 10, 2023, 3:48 p.m. UTC
The content of of_uevent() is currently hardcoded in a driver that can
be compiled as a module. Nothing prevents of_uevent() to be exported to
modules, most of the other helpers in of_device.c actually are.The
reason why this helper was not exported is because it has been so far
only useful in drivers/base, which is built-in anyway.
With the idea of getting rid of the hardcoded implementation of
of_uevent() in other places in the kernel, let's export it to GPL
modules (very much like its cousins in the same file).
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
drivers/of/module.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/of/module.c b/drivers/of/module.c index 874f3fb8220f..8b402a716951 100644 --- a/drivers/of/module.c +++ b/drivers/of/module.c @@ -132,6 +132,7 @@ int of_uevent(struct device_node *np, struct kobj_uevent_env *env) return 0; } +EXPORT_SYMBOL_GPL(of_uevent); int of_uevent_modalias(const struct device_node *np, struct kobj_uevent_env *env) {