linux/arch/mips/sgi-ip27
Paul Gortmaker 26dd3e4ff9 MIPS: Audit and remove any unnecessary uses of module.h
Historically a lot of these existed because we did not have
a distinction between what was modular code and what was providing
support to modules via EXPORT_SYMBOL and friends.  That changed
when we forked out support for the latter into the export.h file.

This means we should be able to reduce the usage of module.h
in code that is obj-y Makefile or bool Kconfig.  In the case of
some code where it is modular, we can extend that to also include
files that are building basic support functionality but not related
to loading or registering the final module; such files also have
no need whatsoever for module.h

The advantage in removing such instances is that module.h itself
sources about 15 other headers; adding significantly to what we feed
cpp, and it can obscure what headers we are effectively using.

Since module.h might have been the implicit source for init.h
(for __init) and for export.h (for EXPORT_SYMBOL) we consider each
instance for the presence of either and replace/add as needed.

Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.

Build coverage of all the mips defconfigs revealed the module.h
header was masking a couple of implicit include instances, so
we add the appropriate headers there.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: David Daney <david.daney@cavium.com>
Cc: John Crispin <john@phrozen.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: "Steven J. Hill" <steven.hill@cavium.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/15131/
[james.hogan@imgtec.com: Preserve sort order where it already exists]
Signed-off-by: James Hogan <james.hogan@imgtec.com>
2017-02-14 09:00:25 +00:00
..
ip27-berr.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
ip27-console.c mips: delete non-required instances of include <linux/init.h> 2014-01-24 22:39:56 +01:00
ip27-hubio.c MIPS: IP27: Fix typo 2016-05-28 12:35:07 +02:00
ip27-init.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
ip27-irq-pci.c mips: delete non-required instances of include <linux/init.h> 2014-01-24 22:39:56 +01:00
ip27-irq.c MIPS: SMP: Don't increment irq_count multiple times for call function IPIs 2015-08-03 09:25:12 +02:00
ip27-irqno.c MIPS: IRQ/IP27: Move IRQ allocation API to platform code. 2015-06-21 21:54:31 +02:00
ip27-klconfig.c mips: delete non-required instances of include <linux/init.h> 2014-01-24 22:39:56 +01:00
ip27-klnuma.c MIPS: Avoid old-style declaration 2017-01-25 02:51:11 +01:00
ip27-memory.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
ip27-nmi.c MIPS: Spelling fix lets -> let's 2016-05-28 12:35:09 +02:00
ip27-reset.c MIPS: IP27: Use __noreturn instead of open coded attributes in declarations. 2015-01-13 16:04:28 +01:00
ip27-smp.c MIPS: SMP: Remove plat_smp_ops cpus_done method. 2014-05-27 11:06:42 +02:00
ip27-timer.c clocksource: Use a plain u64 instead of cycle_t 2016-12-25 11:04:12 +01:00
ip27-xtalk.c MIPS: Spelling fix lets -> let's 2016-05-28 12:35:09 +02:00
Kconfig arch/mips/sgi-ip27: remove depends on CONFIG_EXPERIMENTAL 2013-01-21 14:43:12 -08:00
Makefile MIPS: IRQ/IP27: Move IRQ allocation API to platform code. 2015-06-21 21:54:31 +02:00
Platform MIPS: IP27: Migrate to new Platform file 2010-08-05 13:25:47 +01:00
TODO Fix common misspellings 2011-03-31 11:26:23 -03:00