* [PATCH 0/6] pinctrl: trivial demodularization of builtin code
@ 2016-08-23 21:19 Paul Gortmaker
[not found] ` <20160823211944.18554-1-paul.gortmaker-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Paul Gortmaker @ 2016-08-23 21:19 UTC (permalink / raw)
To: linux-kernel-u79uwXL29TY76Z2rM5mHXA
Cc: Barry Song, Heiko Stuebner, Rongjun Ying, Hongzhou Yang,
Linus Walleij, Patrice Chotard, Yuping Luo, Paul Gortmaker,
linux-gpio-u79uwXL29TY76Z2rM5mHXA,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Alessandro Rubini
This list of changes represents pinctrl drivers that use MODULE_<xyz>
tags but otherwise don't make use of any other module_<xyz> functions
or macros.
Since the former are no-ops when built-in, we simply remove these
MODULE_<xyz> tags and the module.h include that provides them, while
ensuring the information in the tag is properly represented in the
file at the comments at the top or similar.
Since these tags are no-ops, and we don't remove any orphaned fcns
for __exit or .remove support here, the drivers are binary equivalent
before and after this change -- i.e. zero runtime regression risk.
Paul.
---
Cc: Alessandro Rubini <rubini-9wsNiZum9E8@public.gmane.org>
Cc: Barry Song <baohua-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
Cc: Hongzhou Yang <hongzhou.yang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
Cc: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: Patrice Chotard <patrice.chotard-qxv4g6HH51o@public.gmane.org>
Cc: Rongjun Ying <rongjun.ying-kQvG35nSl+M@public.gmane.org>
Cc: Yuping Luo <yuping.luo-kQvG35nSl+M@public.gmane.org>
Cc: linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Paul Gortmaker (6):
pinctrl: mediatek: make mtk-common explicitly non-modular
pinctrl: nomadik: make abx500 explicitly non-modular
pinctrl: nomadik: make core support explicitly non-modular
pinctrl: rockchip: make it explicitly non-modular
pinctrl: sirf: make atlas7 explicitly non-modular
pinctrl: sirf: make core support explicitly non-modular
drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 5 -----
drivers/pinctrl/nomadik/pinctrl-abx500.c | 8 ++------
drivers/pinctrl/nomadik/pinctrl-nomadik.c | 5 -----
drivers/pinctrl/pinctrl-rockchip.c | 7 +------
drivers/pinctrl/sirf/pinctrl-atlas7.c | 5 +----
drivers/pinctrl/sirf/pinctrl-sirf.c | 12 +++++-------
6 files changed, 9 insertions(+), 33 deletions(-)
--
2.8.4
^ permalink raw reply [flat|nested] 3+ messages in thread[parent not found: <20160823211944.18554-1-paul.gortmaker-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org>]
* [PATCH 4/6] pinctrl: rockchip: make it explicitly non-modular [not found] ` <20160823211944.18554-1-paul.gortmaker-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org> @ 2016-08-23 21:19 ` Paul Gortmaker 2016-08-27 11:14 ` Linus Walleij 0 siblings, 1 reply; 3+ messages in thread From: Paul Gortmaker @ 2016-08-23 21:19 UTC (permalink / raw) To: linux-kernel-u79uwXL29TY76Z2rM5mHXA Cc: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Paul Gortmaker, Linus Walleij, Heiko Stuebner, linux-gpio-u79uwXL29TY76Z2rM5mHXA The Kconfig currently controlling compilation of this code is: drivers/pinctrl/Kconfig:config PINCTRL_ROCKCHIP drivers/pinctrl/Kconfig: bool ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modular infrastructure use, so that when reading the driver there is no doubt it is builtin-only. Note that MODULE_DEVICE_TABLE is a no-op for non-modular code. We also delete the MODULE_LICENSE tag etc. since all that information is already contained at the top of the file in the comments. Cc: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> Cc: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org> Cc: linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org Signed-off-by: Paul Gortmaker <paul.gortmaker-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org> --- drivers/pinctrl/pinctrl-rockchip.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c index 44902c63f507..49bf7dcb7ed8 100644 --- a/drivers/pinctrl/pinctrl-rockchip.c +++ b/drivers/pinctrl/pinctrl-rockchip.c @@ -23,7 +23,7 @@ * GNU General Public License for more details. */ -#include <linux/module.h> +#include <linux/init.h> #include <linux/platform_device.h> #include <linux/io.h> #include <linux/bitops.h> @@ -2704,7 +2704,6 @@ static const struct of_device_id rockchip_pinctrl_dt_match[] = { .data = (void *)&rk3399_pin_ctrl }, {}, }; -MODULE_DEVICE_TABLE(of, rockchip_pinctrl_dt_match); static struct platform_driver rockchip_pinctrl_driver = { .probe = rockchip_pinctrl_probe, @@ -2720,7 +2719,3 @@ static int __init rockchip_pinctrl_drv_register(void) return platform_driver_register(&rockchip_pinctrl_driver); } postcore_initcall(rockchip_pinctrl_drv_register); - -MODULE_AUTHOR("Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>"); -MODULE_DESCRIPTION("Rockchip pinctrl driver"); -MODULE_LICENSE("GPL v2"); -- 2.8.4 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 4/6] pinctrl: rockchip: make it explicitly non-modular 2016-08-23 21:19 ` [PATCH 4/6] pinctrl: rockchip: make it explicitly non-modular Paul Gortmaker @ 2016-08-27 11:14 ` Linus Walleij 0 siblings, 0 replies; 3+ messages in thread From: Linus Walleij @ 2016-08-27 11:14 UTC (permalink / raw) To: Paul Gortmaker Cc: linux-kernel@vger.kernel.org, Heiko Stuebner, linux-gpio@vger.kernel.org, open list:ARM/Rockchip SoC... On Tue, Aug 23, 2016 at 11:19 PM, Paul Gortmaker <paul.gortmaker@windriver.com> wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/pinctrl/Kconfig:config PINCTRL_ROCKCHIP > drivers/pinctrl/Kconfig: bool > > ...meaning that it currently is not being built as a module by anyone. > > Lets remove the couple traces of modular infrastructure use, so that > when reading the driver there is no doubt it is builtin-only. > > Note that MODULE_DEVICE_TABLE is a no-op for non-modular code. > > We also delete the MODULE_LICENSE tag etc. since all that information > is already contained at the top of the file in the comments. > > Cc: Linus Walleij <linus.walleij@linaro.org> > Cc: Heiko Stuebner <heiko@sntech.de> > Cc: linux-gpio@vger.kernel.org > Cc: linux-rockchip@lists.infradead.org > Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Patch applied. Yours, Linus Walleij ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-08-27 11:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-23 21:19 [PATCH 0/6] pinctrl: trivial demodularization of builtin code Paul Gortmaker
[not found] ` <20160823211944.18554-1-paul.gortmaker-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org>
2016-08-23 21:19 ` [PATCH 4/6] pinctrl: rockchip: make it explicitly non-modular Paul Gortmaker
2016-08-27 11:14 ` Linus Walleij
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox