linux/arch/mips/dec
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
..
prom MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
ecc-berr.c MIPS: DEC: Bus error handler <asm/cpu-type.h> fixes 2014-05-13 00:29:35 +02:00
int-handler.S MIPS: DEC: Avoid la pseudo-instruction in delay slots 2016-09-29 18:59:49 +02:00
ioasic-irq.c MIPS: DECstation I/O ASIC DMA interrupt classes 2013-10-29 21:24:42 +01:00
kn01-berr.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
kn02-irq.c MIPS: Convert the irq functions to the new names 2011-03-29 14:48:07 +02:00
kn02xa-berr.c MIPS: DEC: Bus error handler <asm/cpu-type.h> fixes 2014-05-13 00:29:35 +02:00
Makefile arch/mips/dec: switch DECstation systems to rtc-cmos 2014-06-06 16:08:07 -07:00
Platform MIPS: Repair Kbuild make clean breakage. 2010-10-19 18:32:39 +01:00
platform.c arch/mips/dec: switch DECstation systems to rtc-cmos 2014-06-06 16:08:07 -07:00
reset.c
setup.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
tc.c
time.c MIPS: DECstation HRT initialization rearrangement 2013-09-13 11:56:13 +02:00
wbflush.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00