Commit d64af918 authored by Michal Simek's avatar Michal Simek

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: 8bc3bcc9)
fix all microblaze files which are not modules.
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 6bd55f0b
...@@ -13,11 +13,11 @@ ...@@ -13,11 +13,11 @@
* This file handles the architecture-dependent parts of hardware exceptions * This file handles the architecture-dependent parts of hardware exceptions
*/ */
#include <linux/export.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/signal.h> #include <linux/signal.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/kallsyms.h> #include <linux/kallsyms.h>
#include <linux/module.h>
#include <asm/exceptions.h> #include <asm/exceptions.h>
#include <asm/entry.h> /* For KM CPU var */ #include <asm/entry.h> /* For KM CPU var */
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
#include <linux/module.h> #include <linux/export.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/cryptohash.h> #include <linux/cryptohash.h>
#include <linux/delay.h> #include <linux/delay.h>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
#include <linux/module.h> #include <linux/export.h>
#include <linux/moduleloader.h> #include <linux/moduleloader.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/elf.h> #include <linux/elf.h>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* for more details. * for more details.
*/ */
#include <linux/module.h> #include <linux/export.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/pm.h> #include <linux/pm.h>
#include <linux/tick.h> #include <linux/tick.h>
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
*/ */
#include <stdarg.h> #include <stdarg.h>
#include <linux/export.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/init.h> #include <linux/init.h>
...@@ -25,7 +26,6 @@ ...@@ -25,7 +26,6 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/initrd.h> #include <linux/initrd.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/module.h>
#include <linux/kexec.h> #include <linux/kexec.h>
#include <linux/debugfs.h> #include <linux/debugfs.h>
#include <linux/irq.h> #include <linux/irq.h>
......
#undef DEBUG #undef DEBUG
#include <linux/export.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/module.h>
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
#include <linux/of_address.h> #include <linux/of_address.h>
......
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
* for more details. * for more details.
*/ */
#include <linux/export.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/stacktrace.h> #include <linux/stacktrace.h>
#include <linux/thread_info.h> #include <linux/thread_info.h>
#include <linux/ptrace.h> #include <linux/ptrace.h>
#include <linux/module.h>
#include <asm/unwind.h> #include <asm/unwind.h>
void save_stack_trace(struct stack_trace *trace) void save_stack_trace(struct stack_trace *trace)
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
*/ */
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/export.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/smp.h> #include <linux/smp.h>
#include <linux/syscalls.h> #include <linux/syscalls.h>
...@@ -24,7 +25,6 @@ ...@@ -24,7 +25,6 @@
#include <linux/sys.h> #include <linux/sys.h>
#include <linux/ipc.h> #include <linux/ipc.h>
#include <linux/file.h> #include <linux/file.h>
#include <linux/module.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/semaphore.h> #include <linux/semaphore.h>
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
* for more details. * for more details.
*/ */
#include <linux/export.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/kallsyms.h> #include <linux/kallsyms.h>
#include <linux/module.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/debug_locks.h> #include <linux/debug_locks.h>
......
...@@ -13,13 +13,13 @@ ...@@ -13,13 +13,13 @@
*/ */
/* #define DEBUG 1 */ /* #define DEBUG 1 */
#include <linux/export.h>
#include <linux/kallsyms.h> #include <linux/kallsyms.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/stacktrace.h> #include <linux/stacktrace.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/module.h>
#include <linux/io.h> #include <linux/io.h>
#include <asm/sections.h> #include <asm/sections.h>
#include <asm/exceptions.h> #include <asm/exceptions.h>
......
#include <linux/module.h> #include <linux/export.h>
#include "libgcc.h" #include "libgcc.h"
......
#include <linux/module.h> #include <linux/export.h>
#include "libgcc.h" #include "libgcc.h"
......
#include <linux/module.h> #include <linux/export.h>
#include "libgcc.h" #include "libgcc.h"
......
#include <linux/module.h> #include <linux/export.h>
#include "libgcc.h" #include "libgcc.h"
......
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
* not any responsibility to update it. * not any responsibility to update it.
*/ */
#include <linux/export.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/stddef.h> #include <linux/stddef.h>
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/module.h>
#include <linux/string.h> #include <linux/string.h>
......
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
* not any responsibility to update it. * not any responsibility to update it.
*/ */
#include <linux/export.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/stddef.h> #include <linux/stddef.h>
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/module.h>
#include <linux/string.h> #include <linux/string.h>
#ifdef __HAVE_ARCH_MEMMOVE #ifdef __HAVE_ARCH_MEMMOVE
......
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
* not any responsibility to update it. * not any responsibility to update it.
*/ */
#include <linux/export.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/stddef.h> #include <linux/stddef.h>
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/module.h>
#include <linux/string.h> #include <linux/string.h>
#ifdef __HAVE_ARCH_MEMSET #ifdef __HAVE_ARCH_MEMSET
......
#include <linux/module.h> #include <linux/export.h>
#include "libgcc.h" #include "libgcc.h"
......
#include <linux/module.h> #include <linux/export.h>
#include "libgcc.h" #include "libgcc.h"
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
#include <linux/module.h> #include <linux/export.h>
#include <linux/signal.h> #include <linux/signal.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/kernel.h> #include <linux/kernel.h>
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
* highmem.h by Benjamin Herrenschmidt (c) 2009 IBM Corp. * highmem.h by Benjamin Herrenschmidt (c) 2009 IBM Corp.
*/ */
#include <linux/export.h>
#include <linux/highmem.h> #include <linux/highmem.h>
#include <linux/module.h>
/* /*
* The use of kmap_atomic/kunmap_atomic is discouraged - kmap/kunmap * The use of kmap_atomic/kunmap_atomic is discouraged - kmap/kunmap
......
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
* *
*/ */
#include <linux/export.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/module.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <linux/init.h> #include <linux/init.h>
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_pci.h> #include <linux/of_pci.h>
#include <linux/pci.h>
#include <linux/export.h> #include <linux/export.h>
#include <asm/processor.h> #include <asm/processor.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment