public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] irqchip: make non-modular code explicitly non-modular
@ 2015-10-11 23:05 Paul Gortmaker
  2015-10-11 23:05 ` [PATCH 1/2] drivers/irqchip: make irq-renesas-intc-irqpin.c " Paul Gortmaker
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Paul Gortmaker @ 2015-10-11 23:05 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: linux-kernel, Paul Gortmaker, Jason Cooper, Magnus Damm,
	Marc Zyngier

In a previous merge window, we made changes to allow better
delineation between modular and non-modular code in commit
0fd972a7d91d6e15393c449492a04d94c0b89351 ("module: relocate module_init
from init.h to module.h").  This allows us to now ensure module code
looks modular and non-modular code does not accidentally look modular
just to avoid suffering build breakage.

Here we target code that is, by nature of their Makefile and/or
Kconfig settings, only available to be built-in, but implicitly
presenting itself as being possibly modular by way of using modular
headers, macros, and functions.

The goal here is to remove that illusion of modularity from these
files, but in a way that leaves the actual runtime unchanged.
In doing so, we remove code that has never been tested and adds
no value to the tree.  And we continue the process of expecting a
level of consistency between the Kconfig/Makefile of code and the
code in use itself.

Fortuntately the irqchip subsystem has just two instances.  For
comparison there are over 300 instances tree wide, resulting in a
possible net removal of on the order of 5000 lines of unused code.

Build tested on the latest linux-next, on ARM.

Paul.
--

Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Magnus Damm <damm+renesas@opensource.se>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>

Paul Gortmaker (2):
  drivers/irqchip: make irq-renesas-intc-irqpin.c explicitly non-modular
  drivers/irqchip: make irq-renesas-irqc.c explicitly non-modular

 drivers/irqchip/irq-renesas-intc-irqpin.c | 24 +-----------------------
 drivers/irqchip/irq-renesas-irqc.c        | 30 +-----------------------------
 2 files changed, 2 insertions(+), 52 deletions(-)

-- 
2.6.1


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

end of thread, other threads:[~2015-10-14  2:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-11 23:05 [PATCH 0/2] irqchip: make non-modular code explicitly non-modular Paul Gortmaker
2015-10-11 23:05 ` [PATCH 1/2] drivers/irqchip: make irq-renesas-intc-irqpin.c " Paul Gortmaker
2015-10-11 23:05 ` [PATCH 2/2] drivers/irqchip: make irq-renesas-irqc.c " Paul Gortmaker
2015-10-12  7:04 ` [PATCH 0/2] irqchip: make non-modular code " Geert Uytterhoeven
2015-10-14  2:26   ` Paul Gortmaker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox