All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] Introduce builtin_driver and use it for non-modular code
@ 2015-05-10 19:49 ` Paul Gortmaker
  0 siblings, 0 replies; 49+ messages in thread
From: Paul Gortmaker @ 2015-05-10 19:49 UTC (permalink / raw)
  To: linux-kernel-u79uwXL29TY76Z2rM5mHXA
  Cc: Paul Gortmaker, Alexandre Courbot, Arnd Bergmann, Axel Lin,
	Daniel Lezcano, David Woodhouse, Dmitry Eremin-Solenikov,
	Greg Kroah-Hartman, Kukjin Kim, Linus Walleij, Michal Simek,
	Rafael J. Wysocki, Sebastian Reichel, Stephen Warren,
	Thierry Reding, Viresh Kumar,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-pm-u79uwXL29TY76Z2rM5mHXA,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA

We see an increasing number of non-modular drivers using the
modular_driver() type register functions.  There are several
downsides to this (as listed in the 1st commit log), so here
we introduce similar non-modular macros for builtin drivers.

Then we convert builtin drivers (controlled by a bool Kconfig)
by making the following type of changes:

  module_platform_driver()       --->  builtin_platform_driver()
  module_platform_driver_probe() --->  builtin_platform_driver_probe().

The set of drivers that are converted here are just the ones that
showed up as relying on an implicit include of <module.h> during
a pending header cleanup.  So we convert them here vs. adding
an include of <module.h> to non-modular code to avoid compile fails.
Additonal conversions can be done asynchronously at any time.

These changes, and the pending header cleanup are a refactoring of
a larger series[1] into smaller, more easily reviewed chunks that
share a common theme.

Note to maintainers:  None of the conversion patches here can be
taken into subtrees individually, since they all rely on the 1st
patch to add the builtin macros.  But I'll add Acks as requested.

Thanks,
Paul.

[1] https://marc.info/?l=linux-kernel&m=139033951228828
---

Cc: Alexandre Courbot <gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
Cc: Axel Lin <axel.lin-8E1dMatC8ynQT0dZR+AlfA@public.gmane.org>
Cc: Daniel Lezcano <daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: David Woodhouse <dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
Cc: Dmitry Eremin-Solenikov <dbaryshkov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Greg Kroah-Hartman <gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>
Cc: Kukjin Kim <kgene-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: Michal Simek <michal.simek-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
Cc: "Rafael J. Wysocki" <rjw-LthD3rsA81gm4RdzfppkhA@public.gmane.org>
Cc: Sebastian Reichel <sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
Cc: Thierry Reding <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Viresh Kumar <viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Cc: linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

^ permalink raw reply	[flat|nested] 49+ messages in thread

end of thread, other threads:[~2015-06-16 15:38 UTC | newest]

Thread overview: 49+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-10 19:49 [PATCH 0/7] Introduce builtin_driver and use it for non-modular code Paul Gortmaker
2015-05-10 19:49 ` Paul Gortmaker
2015-05-10 19:49 ` Paul Gortmaker
2015-05-10 19:49 ` [PATCH 1/7] platform_device: better support builtin boilerplate avoidance Paul Gortmaker
2015-05-12 11:46   ` Linus Walleij
2015-05-28  0:50     ` Paul Gortmaker
2015-06-02  9:19       ` Linus Walleij
2015-06-03 14:07         ` Paul Gortmaker
2015-06-10  7:35           ` Linus Walleij
2015-05-10 19:49 ` [PATCH 2/7] drivers/platform: Convert non-modular pdev_bus to use builtin_driver_register Paul Gortmaker
2015-05-10 19:49 ` [PATCH 3/7] drivers/cpuidle: Convert non-modular drivers " Paul Gortmaker
2015-05-10 19:49   ` Paul Gortmaker
2015-05-10 19:49   ` Paul Gortmaker
2015-05-11 17:13   ` Daniel Lezcano
2015-05-11 17:13     ` Daniel Lezcano
2015-05-10 19:49 ` [PATCH 4/7] drivers/cpufreq: " Paul Gortmaker
2015-05-10 19:49   ` Paul Gortmaker
2015-05-10 19:49   ` Paul Gortmaker
2015-05-12  7:04   ` Viresh Kumar
2015-05-12  7:04     ` Viresh Kumar
2015-05-13  3:17     ` Paul Gortmaker
2015-05-13  3:17       ` Paul Gortmaker
2015-05-13  3:17       ` Paul Gortmaker
2015-06-03 20:59     ` Paul Gortmaker
2015-06-03 20:59       ` Paul Gortmaker
2015-06-03 20:59       ` Paul Gortmaker
2015-06-03 21:12     ` [PATCH v2] drivers/cpufreq: Convert non-modular s5pv210-cpufreq.c to use builtin_platform_driver Paul Gortmaker
2015-06-03 21:12       ` Paul Gortmaker
2015-06-03 21:12       ` Paul Gortmaker
2015-06-04  2:28       ` Viresh Kumar
2015-06-04  2:28         ` Viresh Kumar
2015-06-15 23:50       ` Rafael J. Wysocki
2015-06-15 23:50         ` Rafael J. Wysocki
2015-06-16 15:37         ` Paul Gortmaker
2015-06-16 15:37           ` Paul Gortmaker
2015-06-16 15:37           ` Paul Gortmaker
2015-05-10 19:49 ` [PATCH 5/7] drivers/soc: Convert non-modular tegra/pmc to use builtin_driver_register Paul Gortmaker
2015-05-10 19:49   ` Paul Gortmaker
2015-05-10 19:49 ` [PATCH 6/7] drivers/soc: Convert non-modular soc-realview " Paul Gortmaker
2015-05-12 11:39   ` Linus Walleij
2015-05-10 19:49 ` [PATCH 7/7] drivers/power: Convert non-modular syscon-reboot " Paul Gortmaker
2015-05-10 19:49   ` Paul Gortmaker
2015-05-23 17:55   ` Sebastian Reichel
2015-06-03 19:09 ` [PATCH] drivers/clk: convert sunxi/clk-mod0.c to use builtin_platform_driver Paul Gortmaker
2015-06-03 19:09   ` Paul Gortmaker
2015-06-04 16:21   ` Maxime Ripard
2015-06-04 16:21     ` Maxime Ripard
2015-06-04 22:50   ` Stephen Boyd
2015-06-04 22:50     ` Stephen Boyd

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.