Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

microblaze: Do not use module.h in files which are not modules

Based on the patch:
"lib: reduce the use of module.h wherever possible"
(sha1: 8bc3bcc93a2b4e47d5d410146f6546bca6171663)
fix all microblaze files which are not modules.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>

+23 -22
+1 -1
arch/microblaze/kernel/exceptions.c
··· 13 13 * This file handles the architecture-dependent parts of hardware exceptions 14 14 */ 15 15 16 + #include <linux/export.h> 16 17 #include <linux/kernel.h> 17 18 #include <linux/signal.h> 18 19 #include <linux/sched.h> 19 20 #include <linux/kallsyms.h> 20 - #include <linux/module.h> 21 21 22 22 #include <asm/exceptions.h> 23 23 #include <asm/entry.h> /* For KM CPU var */
+1 -1
arch/microblaze/kernel/microblaze_ksyms.c
··· 7 7 * published by the Free Software Foundation. 8 8 */ 9 9 10 - #include <linux/module.h> 10 + #include <linux/export.h> 11 11 #include <linux/string.h> 12 12 #include <linux/cryptohash.h> 13 13 #include <linux/delay.h>
+1 -1
arch/microblaze/kernel/module.c
··· 7 7 * published by the Free Software Foundation. 8 8 */ 9 9 10 - #include <linux/module.h> 10 + #include <linux/export.h> 11 11 #include <linux/moduleloader.h> 12 12 #include <linux/kernel.h> 13 13 #include <linux/elf.h>
+1 -1
arch/microblaze/kernel/process.c
··· 8 8 * for more details. 9 9 */ 10 10 11 - #include <linux/module.h> 11 + #include <linux/export.h> 12 12 #include <linux/sched.h> 13 13 #include <linux/pm.h> 14 14 #include <linux/tick.h>
+1 -1
arch/microblaze/kernel/prom.c
··· 14 14 */ 15 15 16 16 #include <stdarg.h> 17 + #include <linux/export.h> 17 18 #include <linux/kernel.h> 18 19 #include <linux/string.h> 19 20 #include <linux/init.h> ··· 26 25 #include <linux/delay.h> 27 26 #include <linux/initrd.h> 28 27 #include <linux/bitops.h> 29 - #include <linux/module.h> 30 28 #include <linux/kexec.h> 31 29 #include <linux/debugfs.h> 32 30 #include <linux/irq.h>
+1 -1
arch/microblaze/kernel/prom_parse.c
··· 1 1 #undef DEBUG 2 2 3 + #include <linux/export.h> 3 4 #include <linux/kernel.h> 4 5 #include <linux/string.h> 5 - #include <linux/module.h> 6 6 #include <linux/ioport.h> 7 7 #include <linux/etherdevice.h> 8 8 #include <linux/of_address.h>
+1 -1
arch/microblaze/kernel/stacktrace.c
··· 9 9 * for more details. 10 10 */ 11 11 12 + #include <linux/export.h> 12 13 #include <linux/sched.h> 13 14 #include <linux/stacktrace.h> 14 15 #include <linux/thread_info.h> 15 16 #include <linux/ptrace.h> 16 - #include <linux/module.h> 17 17 #include <asm/unwind.h> 18 18 19 19 void save_stack_trace(struct stack_trace *trace)
+1 -1
arch/microblaze/kernel/sys_microblaze.c
··· 13 13 */ 14 14 15 15 #include <linux/errno.h> 16 + #include <linux/export.h> 16 17 #include <linux/mm.h> 17 18 #include <linux/smp.h> 18 19 #include <linux/syscalls.h> ··· 25 24 #include <linux/sys.h> 26 25 #include <linux/ipc.h> 27 26 #include <linux/file.h> 28 - #include <linux/module.h> 29 27 #include <linux/err.h> 30 28 #include <linux/fs.h> 31 29 #include <linux/semaphore.h>
+1 -1
arch/microblaze/kernel/traps.c
··· 8 8 * for more details. 9 9 */ 10 10 11 + #include <linux/export.h> 11 12 #include <linux/kernel.h> 12 13 #include <linux/kallsyms.h> 13 - #include <linux/module.h> 14 14 #include <linux/sched.h> 15 15 #include <linux/debug_locks.h> 16 16
+1 -1
arch/microblaze/kernel/unwind.c
··· 13 13 */ 14 14 15 15 /* #define DEBUG 1 */ 16 + #include <linux/export.h> 16 17 #include <linux/kallsyms.h> 17 18 #include <linux/kernel.h> 18 19 #include <linux/sched.h> 19 20 #include <linux/stacktrace.h> 20 21 #include <linux/types.h> 21 22 #include <linux/errno.h> 22 - #include <linux/module.h> 23 23 #include <linux/io.h> 24 24 #include <asm/sections.h> 25 25 #include <asm/exceptions.h>
+1 -1
arch/microblaze/lib/ashldi3.c
··· 1 - #include <linux/module.h> 1 + #include <linux/export.h> 2 2 3 3 #include "libgcc.h" 4 4
+1 -1
arch/microblaze/lib/ashrdi3.c
··· 1 - #include <linux/module.h> 1 + #include <linux/export.h> 2 2 3 3 #include "libgcc.h" 4 4
+1 -1
arch/microblaze/lib/cmpdi2.c
··· 1 - #include <linux/module.h> 1 + #include <linux/export.h> 2 2 3 3 #include "libgcc.h" 4 4
+1 -1
arch/microblaze/lib/lshrdi3.c
··· 1 - #include <linux/module.h> 1 + #include <linux/export.h> 2 2 3 3 #include "libgcc.h" 4 4
+1 -1
arch/microblaze/lib/memcpy.c
··· 24 24 * not any responsibility to update it. 25 25 */ 26 26 27 + #include <linux/export.h> 27 28 #include <linux/types.h> 28 29 #include <linux/stddef.h> 29 30 #include <linux/compiler.h> 30 - #include <linux/module.h> 31 31 32 32 #include <linux/string.h> 33 33
+1 -1
arch/microblaze/lib/memmove.c
··· 24 24 * not any responsibility to update it. 25 25 */ 26 26 27 + #include <linux/export.h> 27 28 #include <linux/types.h> 28 29 #include <linux/stddef.h> 29 30 #include <linux/compiler.h> 30 - #include <linux/module.h> 31 31 #include <linux/string.h> 32 32 33 33 #ifdef __HAVE_ARCH_MEMMOVE
+1 -1
arch/microblaze/lib/memset.c
··· 24 24 * not any responsibility to update it. 25 25 */ 26 26 27 + #include <linux/export.h> 27 28 #include <linux/types.h> 28 29 #include <linux/stddef.h> 29 30 #include <linux/compiler.h> 30 - #include <linux/module.h> 31 31 #include <linux/string.h> 32 32 33 33 #ifdef __HAVE_ARCH_MEMSET
+1 -1
arch/microblaze/lib/muldi3.c
··· 1 - #include <linux/module.h> 1 + #include <linux/export.h> 2 2 3 3 #include "libgcc.h" 4 4
+1 -1
arch/microblaze/lib/ucmpdi2.c
··· 1 - #include <linux/module.h> 1 + #include <linux/export.h> 2 2 3 3 #include "libgcc.h" 4 4
+1 -1
arch/microblaze/mm/consistent.c
··· 13 13 * published by the Free Software Foundation. 14 14 */ 15 15 16 - #include <linux/module.h> 16 + #include <linux/export.h> 17 17 #include <linux/signal.h> 18 18 #include <linux/sched.h> 19 19 #include <linux/kernel.h>
+1 -1
arch/microblaze/mm/highmem.c
··· 20 20 * highmem.h by Benjamin Herrenschmidt (c) 2009 IBM Corp. 21 21 */ 22 22 23 + #include <linux/export.h> 23 24 #include <linux/highmem.h> 24 - #include <linux/module.h> 25 25 26 26 /* 27 27 * The use of kmap_atomic/kunmap_atomic is discouraged - kmap/kunmap
+1 -1
arch/microblaze/mm/pgtable.c
··· 26 26 * 27 27 */ 28 28 29 + #include <linux/export.h> 29 30 #include <linux/kernel.h> 30 - #include <linux/module.h> 31 31 #include <linux/types.h> 32 32 #include <linux/vmalloc.h> 33 33 #include <linux/init.h>
+1
arch/microblaze/pci/pci-common.c
··· 30 30 #include <linux/of.h> 31 31 #include <linux/of_address.h> 32 32 #include <linux/of_pci.h> 33 + #include <linux/pci.h> 33 34 #include <linux/export.h> 34 35 35 36 #include <asm/processor.h>