]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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>
Sun, 31 Jul 2011 08:05:46 +0000 (04:05 -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 34e3da5aa72a2463863b04e3b3befb4aba02505d..b32f0762c19b0b08d22ccdbbb5225c8a53e7e129 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 c161a9aaeb7ecc16cb77b9d8e85eb1dcd4b62e1b..dac59ae80390980cf664915e68a6c67a824830e9 100644 (file)
@@ -29,6 +29,7 @@
 
 #include <linux/blkdev.h>
 #include <linux/pagemap.h>
+#include <linux/export.h>
 #include <asm/unaligned.h>
 
 #include <linux/usb/composite.h>
index a8aa46962d81dba4a3c48bc0b5b1b50df39408ce..2f627c98b364f170c086f349ec1cdc4e664fec67 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 a9d315906e3dede9caa39571742a3c34c76b55ee..0f365aaa7cb22bcaa75b3eb9e2884f0b1cbf19f7 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 a09dbd243eb370972bab11e2868eb08b588a15dd..83d7fe529388346afb27abdd7d87c8f8c88ff97b 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 e8ae21b2d387c11a1a1038ae98855d9db1228dc1..acda07951de95269118aaad13e280bcc7ba79c03 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"