]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
s390: mm: Audit and remove any unnecessary uses of module.h
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 9 Feb 2017 20:20:24 +0000 (15:20 -0500)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 17 Feb 2017 06:40:35 +0000 (07:40 +0100)
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.  The advantage
in doing so 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 was the source for init.h (for __init) and for
export.h (for EXPORT_SYMBOL) we consider each change instance
for the presence of either and replace as needed.  An instance
where module_param was used without moduleparam.h was also fixed,
as well as an implict use of asm/elf.h header.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/cmm.c
arch/s390/mm/dump_pagetables.c
arch/s390/mm/extmem.c
arch/s390/mm/mem_detect.c
arch/s390/mm/mmap.c
arch/s390/mm/pageattr.c
arch/s390/mm/vmem.c

index 79ddd580d60539dbcdb7114bf1523290fa300aa2..829c63dbc81af344d816bf2183d937d9f1cd4724 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/fs.h>
 #include <linux/init.h>
 #include <linux/module.h>
+#include <linux/moduleparam.h>
 #include <linux/gfp.h>
 #include <linux/sched.h>
 #include <linux/sysctl.h>
index 5a46b1d7e57852ed44d17bc14aed56377041718a..145a0ccb58456231192138ebdc95808842eb18ca 100644 (file)
@@ -1,6 +1,5 @@
 #include <linux/seq_file.h>
 #include <linux/debugfs.h>
-#include <linux/module.h>
 #include <linux/mm.h>
 #include <asm/sections.h>
 #include <asm/pgtable.h>
index 91af69f1dce57677c4b200417f3fb17e50d4cf2f..9f118629b55fb64069fc90c6b1e816aa19d25e62 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/spinlock.h>
 #include <linux/list.h>
 #include <linux/slab.h>
-#include <linux/module.h>
+#include <linux/export.h>
 #include <linux/bootmem.h>
 #include <linux/ctype.h>
 #include <linux/ioport.h>
index 185e70d3e15397d6bec38e5c5f4d76e5179b18bd..e58dca05b9627cab38b16d5e9c6cfedb3c5a3043 100644 (file)
@@ -5,7 +5,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/module.h>
 #include <linux/memblock.h>
 #include <linux/init.h>
 #include <linux/debugfs.h>
index eb9df2822da193250fc2c72589a31e620110a599..7ae1282d5be98d5b8ce856a0f894daff271ec674 100644 (file)
 #include <linux/personality.h>
 #include <linux/mm.h>
 #include <linux/mman.h>
-#include <linux/module.h>
 #include <linux/random.h>
 #include <linux/compat.h>
 #include <linux/security.h>
 #include <asm/pgalloc.h>
+#include <asm/elf.h>
 
 static unsigned long stack_maxrandom_size(void)
 {
index a1543b74ee004c857b491f791ad5661813d97754..fc5dc33bb141798a9ed6c4f31762841653e096e1 100644 (file)
@@ -3,7 +3,6 @@
  * Author(s): Jan Glauber <jang@linux.vnet.ibm.com>
  */
 #include <linux/hugetlb.h>
-#include <linux/module.h>
 #include <linux/mm.h>
 #include <asm/cacheflush.h>
 #include <asm/facility.h>
index 253046344b3c2c0a486b784e43ec4dc0b2dc4d50..60d38993f2323ac3865cd2f2ec44ba8bc8cafd97 100644 (file)
@@ -6,7 +6,7 @@
 #include <linux/bootmem.h>
 #include <linux/pfn.h>
 #include <linux/mm.h>
-#include <linux/module.h>
+#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/hugetlb.h>
 #include <linux/slab.h>