usb: Add export.h for EXPORT_SYMBOL/THIS_MODULE where needed
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 27 May 2011 13:56:31 +0000 (09:56 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 31 Oct 2011 23:31:25 +0000 (19:31 -0400)
With module.h being implicitly everywhere via device.h, the absence
of explicitly including something for EXPORT_SYMBOL went unnoticed.
Since we are heading to fix things up and clean module.h from the
device.h file, we need to explicitly include these files now.

Use the lightweight version of the header that has just THIS_MODULE
and EXPORT_SYMBOL variants.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
19 files changed:
drivers/usb/core/driver.c
drivers/usb/core/notify.c
drivers/usb/gadget/f_fs.c
drivers/usb/gadget/u_serial.c
drivers/usb/host/pci-quirks.c
drivers/usb/host/whci/debug.c
drivers/usb/mon/mon_bin.c
drivers/usb/mon/mon_stat.c
drivers/usb/mon/mon_text.c
drivers/usb/otg/otg.c
drivers/usb/otg/ulpi.c
drivers/usb/storage/protocol.c
drivers/usb/storage/transport.c
drivers/usb/wusbcore/devconnect.c
drivers/usb/wusbcore/mmc.c
drivers/usb/wusbcore/rh.c
drivers/usb/wusbcore/security.c
drivers/usb/wusbcore/wa-rpipe.c
drivers/usb/wusbcore/wa-xfer.c

index 3b029a0a478787fbf05e298ef148637968fce33e..2de2803f653349b457f12a00f436f4c1dc39fbe7 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <linux/device.h>
 #include <linux/slab.h>
+#include <linux/export.h>
 #include <linux/usb.h>
 #include <linux/usb/quirks.h>
 #include <linux/usb/hcd.h>
index 7542dce3f5a1e2b01bcbd2ef78c08bd870c31b1a..7728c91dfa2e61eb50b21d75f558a96342db60a2 100644 (file)
@@ -10,6 +10,7 @@
 
 
 #include <linux/kernel.h>
+#include <linux/export.h>
 #include <linux/notifier.h>
 #include <linux/usb.h>
 #include <linux/mutex.h>
index 6b1c20b6c9b2e71817f9d62d89d0714d7b3e0655..acb38004eec08ba72819477df0af6eacd00bcd34 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <linux/blkdev.h>
 #include <linux/pagemap.h>
+#include <linux/export.h>
 #include <asm/unaligned.h>
 
 #include <linux/usb/composite.h>
index 3a4a664bab44c44583ce696e8918146d504e5ae2..6597a6813e438adbd192cb86f3675ddd368c2d7d 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/tty.h>
 #include <linux/tty_flip.h>
 #include <linux/slab.h>
+#include <linux/export.h>
 
 #include "u_serial.h"
 
index 629a96813fd66a9ebde456a2232a572c13f13dba..27a3dec32fa2f78895175f32a89f5e8f0270f7cc 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/pci.h>
 #include <linux/init.h>
 #include <linux/delay.h>
+#include <linux/export.h>
 #include <linux/acpi.h>
 #include <linux/dmi.h>
 #include "pci-quirks.h"
index 767af265e0021f36336664ed32be46d66caac159..ba61dae9e4d2ce84bf5d75f12754ab4bf8d5d2c5 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/kernel.h>
 #include <linux/debugfs.h>
 #include <linux/seq_file.h>
+#include <linux/export.h>
 
 #include "../../wusbcore/wusbhc.h"
 
index a04b2ff9dd83263083f51fceb703655721e081bb..91cd85076a44b1b22a3cd93f4fcb96d743228bc5 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/types.h>
 #include <linux/fs.h>
 #include <linux/cdev.h>
+#include <linux/export.h>
 #include <linux/usb.h>
 #include <linux/poll.h>
 #include <linux/compat.h>
index e5ce42bd316e5c68d29a72ffdc2d805b6a575f37..ebd6189a5014ec2beff3580c0b98c3e61d140134 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <linux/kernel.h>
 #include <linux/slab.h>
+#include <linux/export.h>
 #include <linux/usb.h>
 #include <linux/fs.h>
 #include <asm/uaccess.h>
index 1c3afcc11bd91584d87c49e62f89498d52c68d21..ad408251d9557c2504bd35dcd53ae416344bf08d 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/usb.h>
 #include <linux/slab.h>
 #include <linux/time.h>
+#include <linux/export.h>
 #include <linux/mutex.h>
 #include <linux/debugfs.h>
 #include <linux/scatterlist.h>
index fb7adeff9ffa42ce39a1290f2d3a18f408165a8c..307c27bc51eb34e62a07dc627dcbcdedd4de2843 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <linux/kernel.h>
+#include <linux/export.h>
 #include <linux/device.h>
 
 #include <linux/usb/otg.h>
index 770d799d5afb8ec0eadd650dc2c1f348dc7648c5..0b0466728fdc38e63a29a5c5375b712c6347df54 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <linux/kernel.h>
 #include <linux/slab.h>
+#include <linux/export.h>
 #include <linux/usb.h>
 #include <linux/usb/otg.h>
 #include <linux/usb/ulpi.h>
index fc310f75eada97c0c64da9d5886882eef9631dbf..93c1a4d86f51785983c5bac899d272808d390aff 100644 (file)
@@ -43,6 +43,7 @@
  */
 
 #include <linux/highmem.h>
+#include <linux/export.h>
 #include <scsi/scsi.h>
 #include <scsi/scsi_cmnd.h>
 
index ff32390d61e5d489314b72bec6ff3e3d178b5b01..0e5c91c6187f1a8f45d3a873f05507c09ab795da 100644 (file)
@@ -46,6 +46,7 @@
 #include <linux/sched.h>
 #include <linux/gfp.h>
 #include <linux/errno.h>
+#include <linux/export.h>
 
 #include <linux/usb/quirks.h>
 
index 7ec24e46b34bef5269b220b71b8382eaa9140c16..231009af65a3a05712dfd34d8484a7b0a02da18e 100644 (file)
@@ -90,6 +90,7 @@
 #include <linux/ctype.h>
 #include <linux/slab.h>
 #include <linux/workqueue.h>
+#include <linux/export.h>
 #include "wusbhc.h"
 
 static void wusbhc_devconnect_acked_work(struct work_struct *work);
index 0a57ff0a0b0c6df4b802f5ff5316ceb77ae7a2a1..b8c72583c0405f6d2cac23ea5884b14bc2427672 100644 (file)
@@ -38,6 +38,7 @@
  */
 #include <linux/usb/wusb.h>
 #include <linux/slab.h>
+#include <linux/export.h>
 #include "wusbhc.h"
 
 /* Initialize the MMCIEs handling mechanism */
index 39de3900ad20df04dc821e58f0db676c27bbe5be..59ff254dfb6fc294108824da98cf36b2883f753f 100644 (file)
@@ -70,6 +70,7 @@
  * wusbhc_rh_start_port_reset() ??? unimplemented
  */
 #include <linux/slab.h>
+#include <linux/export.h>
 #include "wusbhc.h"
 
 /*
index b60799b811c144e5513e9e201f2f6fb38b5a709b..371f61733f0538e9cda6d0be0d919727fc28e08a 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/slab.h>
 #include <linux/usb/ch9.h>
 #include <linux/random.h>
+#include <linux/export.h>
 #include "wusbhc.h"
 
 static void wusbhc_set_gtk_callback(struct urb *urb);
index 2acc7f504c516e60459bcba34a25907180996fbf..f0d546c5a089d3513f037b2eb4c63c841fff8cb5 100644 (file)
@@ -61,6 +61,7 @@
 #include <linux/atomic.h>
 #include <linux/bitmap.h>
 #include <linux/slab.h>
+#include <linux/export.h>
 
 #include "wusbhc.h"
 #include "wa-hc.h"
index 419334568be6806eacece838fd37e1168c9a1606..57c01ab09ad85209cedc966e90a3be2d94cb90f7 100644 (file)
@@ -84,6 +84,7 @@
 #include <linux/slab.h>
 #include <linux/hash.h>
 #include <linux/ratelimit.h>
+#include <linux/export.h>
 
 #include "wa-hc.h"
 #include "wusbhc.h"