staging: unisys: only include a file where it is used.
authorDavid Kershner <david.kershner@unisys.com>
Wed, 27 Sep 2017 17:14:29 +0000 (13:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Sep 2017 09:17:14 +0000 (11:17 +0200)
The header file visorbus.h included several linux headers that were
used by the source files that include it. Move the includes to the
files that actually use them.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: Tim Sell <timothy.sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/include/visorbus.h
drivers/staging/unisys/visorbus/visorbus_main.c
drivers/staging/unisys/visorbus/visorchannel.c
drivers/staging/unisys/visorhba/visorhba_main.c
drivers/staging/unisys/visorinput/visorinput.c
drivers/staging/unisys/visornic/visornic_main.c

index ea01a21f5260f0ad203492d907c17e4962d4b806..6666163d31ba70f4d05656a00f25bcb259051a14 100644 (file)
@@ -28,8 +28,6 @@
 #define __VISORBUS_H__
 
 #include <linux/device.h>
-#include <linux/module.h>
-#include <linux/slab.h>
 
 #include "channel.h"
 
index 46e6a4c7619076bec304414637aeddac46f54709..baae38f70bcc57d143884ed4c1a536648c76471a 100644 (file)
@@ -14,6 +14,8 @@
  */
 
 #include <linux/debugfs.h>
+#include <linux/module.h>
+#include <linux/slab.h>
 #include <linux/uuid.h>
 
 #include "visorbus.h"
index 44eab701291e643a0d5c5ca90b1c89731b97ff59..68cfd950e70e51baaec867a68044d40f3787fb8c 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <linux/uuid.h>
 #include <linux/io.h>
+#include <linux/slab.h>
 
 #include "visorbus.h"
 #include "visorbus_private.h"
index 419dba89af065b431d7923cbad0de4c309262efa..b84b40e78f8f1eb6c8455351efa1dc4a6e958a8d 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/debugfs.h>
 #include <linux/kthread.h>
 #include <linux/idr.h>
+#include <linux/module.h>
 #include <linux/seq_file.h>
 #include <scsi/scsi.h>
 #include <scsi/scsi_host.h>
index 9d8cbc52de8b2efebf679d750fa713361607b215..1b58663709e6d4013c9932fb8eda8c82bd30f266 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/fb.h>
 #include <linux/input.h>
 #include <linux/kernel.h>
+#include <linux/module.h>
 #include <linux/uuid.h>
 
 #include "visorbus.h"
index dc390eae2960a03a69c6a99f42269c769debb071..c5f0b012378fa80d1c2c54216d449dd8d0568bec 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <linux/debugfs.h>
 #include <linux/etherdevice.h>
+#include <linux/module.h>
 #include <linux/netdevice.h>
 #include <linux/kthread.h>
 #include <linux/skbuff.h>