WSL2-Linux-Kernel/arch/mips/pmcs-msp71xx
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
..
Kconfig kconfig: use bool instead of boolean for type definition attributes 2015-01-07 13:08:04 +01:00
Makefile MIPS: MT: Remove SMTC support 2014-05-24 00:07:01 +02:00
Platform MIPS: MSP71xx: Move code. 2013-02-01 10:00:22 +01:00
msp_elb.c MIPS: MSP71xx: Move code. 2013-02-01 10:00:22 +01:00
msp_eth.c MIPS: MSP71xx: Remove checks for two macros 2014-05-23 15:12:39 +02:00
msp_hwbutton.c MIPS: MSP71xx: Move code. 2013-02-01 10:00:22 +01:00
msp_irq.c MIPS: MSP71xx: Remove compilation error when CONFIG_MIPS_MT is present 2014-10-22 23:16:55 +02:00
msp_irq_cic.c MIPS: irq: Use access helper irq_data_get_affinity_mask() 2015-08-26 15:23:28 +02:00
msp_irq_per.c MIPS: MT: Remove SMTC support 2014-05-24 00:07:01 +02:00
msp_irq_slp.c MIPS: MSP71xx: Move code. 2013-02-01 10:00:22 +01:00
msp_pci.c MIPS: MSP71xx: Move code. 2013-02-01 10:00:22 +01:00
msp_prom.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
msp_serial.c serial: Fix ASYNC_* => UPF_* flags misuse 2016-01-28 14:17:42 -08:00
msp_setup.c MIPS: MSP71xx: Use __flush_cache_all instead of flush_cache_all. 2016-05-13 14:01:38 +02:00
msp_smp.c MIPS: SMP: Don't increment irq_count multiple times for call function IPIs 2015-08-03 09:25:12 +02:00
msp_time.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
msp_usb.c MIPS: MSP71xx: Remove checks for two macros 2014-05-23 15:12:39 +02:00