[PATCH 08/12] headers: fs.h vs usb.h
From: Alexey Dobriyan
Date: Sat Jun 21 2014 - 06:22:09 EST
---
drivers/staging/comedi/drivers/dt9812.c | 1 +
drivers/usb/class/cdc-wdm.c | 1 +
drivers/usb/class/usblp.c | 1 +
drivers/usb/core/file.c | 1 +
drivers/usb/core/hub.c | 1 +
drivers/usb/host/xhci.h | 1 +
drivers/usb/misc/adutux.c | 1 +
drivers/usb/misc/ftdi-elan.c | 1 +
drivers/usb/misc/idmouse.c | 1 +
drivers/usb/misc/iowarrior.c | 1 +
drivers/usb/misc/legousbtower.c | 1 +
drivers/usb/misc/rio500.c | 1 +
drivers/usb/misc/usblcd.c | 1 +
include/linux/usb.h | 2 +-
14 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/comedi/drivers/dt9812.c b/drivers/staging/comedi/drivers/dt9812.c
index b3aeb6f..5a51be8 100644
--- a/drivers/staging/comedi/drivers/dt9812.c
+++ b/drivers/staging/comedi/drivers/dt9812.c
@@ -41,6 +41,7 @@ for my needs.
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/errno.h>
+#include <linux/semaphore.h>
#include <linux/uaccess.h>
#include <linux/usb.h>
diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c
index a051a7a..c713ff3 100644
--- a/drivers/usb/class/cdc-wdm.c
+++ b/drivers/usb/class/cdc-wdm.c
@@ -11,6 +11,7 @@
*
* Many thanks to Carl Nordbeck
*/
+#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/ioctl.h>
diff --git a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c
index 0924ee4..2f5600c 100644
--- a/drivers/usb/class/usblp.c
+++ b/drivers/usb/class/usblp.c
@@ -47,6 +47,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <linux/fs.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sched.h>
diff --git a/drivers/usb/core/file.c b/drivers/usb/core/file.c
index ea337a7..4c0d8c98 100644
--- a/drivers/usb/core/file.c
+++ b/drivers/usb/core/file.c
@@ -15,6 +15,7 @@
*
*/
+#include <linux/fs.h>
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/rwsem.h>
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 21b99b4..bc5bae8 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -9,6 +9,7 @@
*/
#include <linux/kernel.h>
+#include <linux/kdev_t.h>
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index 9ffecd5..4fd10cc 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -23,6 +23,7 @@
#ifndef __LINUX_XHCI_HCD_H
#define __LINUX_XHCI_HCD_H
+#include <linux/radix-tree.h>
#include <linux/usb.h>
#include <linux/timer.h>
#include <linux/kernel.h>
diff --git a/drivers/usb/misc/adutux.c b/drivers/usb/misc/adutux.c
index 493c7f2..14e96b1 100644
--- a/drivers/usb/misc/adutux.c
+++ b/drivers/usb/misc/adutux.c
@@ -20,6 +20,7 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/slab.h>
diff --git a/drivers/usb/misc/ftdi-elan.c b/drivers/usb/misc/ftdi-elan.c
index 8ab1f8f..db69287 100644
--- a/drivers/usb/misc/ftdi-elan.c
+++ b/drivers/usb/misc/ftdi-elan.c
@@ -38,6 +38,7 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
diff --git a/drivers/usb/misc/idmouse.c b/drivers/usb/misc/idmouse.c
index 4e38683c..837fd77 100644
--- a/drivers/usb/misc/idmouse.c
+++ b/drivers/usb/misc/idmouse.c
@@ -16,6 +16,7 @@
*/
+#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/delay.h>
diff --git a/drivers/usb/misc/iowarrior.c b/drivers/usb/misc/iowarrior.c
index c6bfd13..381a985 100644
--- a/drivers/usb/misc/iowarrior.c
+++ b/drivers/usb/misc/iowarrior.c
@@ -13,6 +13,7 @@
* Released under the GPLv2.
*/
+#include <linux/fs.h>
#include <linux/module.h>
#include <linux/usb.h>
#include <linux/slab.h>
diff --git a/drivers/usb/misc/legousbtower.c b/drivers/usb/misc/legousbtower.c
index 97cd9e2..e3c692b 100644
--- a/drivers/usb/misc/legousbtower.c
+++ b/drivers/usb/misc/legousbtower.c
@@ -77,6 +77,7 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/slab.h>
diff --git a/drivers/usb/misc/rio500.c b/drivers/usb/misc/rio500.c
index 13731d5..a83e2a2 100644
--- a/drivers/usb/misc/rio500.c
+++ b/drivers/usb/misc/rio500.c
@@ -28,6 +28,7 @@
* Daniele Bellucci bellucda@xxxxxxxxxx
* */
+#include <linux/fs.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/signal.h>
diff --git a/drivers/usb/misc/usblcd.c b/drivers/usb/misc/usblcd.c
index 1184390..d5a4e4c 100644
--- a/drivers/usb/misc/usblcd.c
+++ b/drivers/usb/misc/usblcd.c
@@ -12,6 +12,7 @@
* This new driver allows more than one USB-LCD to be connected *
* and controlled, at once *
*****************************************************************************/
+#include <linux/fs.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
diff --git a/include/linux/usb.h b/include/linux/usb.h
index d2465bc..2a23d52 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -16,12 +16,12 @@
#include <linux/list.h> /* for struct list_head */
#include <linux/kref.h> /* for struct kref */
#include <linux/device.h> /* for struct device */
-#include <linux/fs.h> /* for struct file_operations */
#include <linux/completion.h> /* for struct completion */
#include <linux/sched.h> /* for current && schedule_timeout */
#include <linux/mutex.h> /* for struct mutex */
#include <linux/pm_runtime.h> /* for runtime PM */
+struct file_operations;
struct usb_device;
struct usb_driver;
struct wusb_dev;
--
1.8.5.5
--u3/rZRmxL6MmkK24
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0009-headers-fs.h-vs-input.h.patch"