Commit 475c0a6b authored by Paul Gortmaker's avatar Paul Gortmaker

uwb: Add export.h for EXPORT_SYMBOL/THIS_MODULE as required

These macros are no longer in module.h and module.h is no longer
present everywhere.  Call out export.h for the real users who
are making use of these macros, or else we'll get things like:

 CC      drivers/uwb/umc-drv.o
drivers/uwb/umc-dev.c:42: warning: data definition has no type or storage class
drivers/uwb/umc-dev.c:42: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’
drivers/uwb/umc-dev.c:42: warning: parameter names (without types) in function declaration
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent c7394efc
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
*/ */
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/export.h>
#include "uwb-internal.h" #include "uwb-internal.h"
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/uwb.h> #include <linux/uwb.h>
#include <linux/random.h> #include <linux/random.h>
#include <linux/export.h>
/* /*
* i1480_rceb_check - Check RCEB for expected field values * i1480_rceb_check - Check RCEB for expected field values
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
*/ */
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/export.h>
#include "uwb-internal.h" #include "uwb-internal.h"
/** /**
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/export.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/kdev_t.h> #include <linux/kdev_t.h>
#include <linux/random.h> #include <linux/random.h>
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
#include <linux/usb.h> #include <linux/usb.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/export.h>
#include "uwb-internal.h" #include "uwb-internal.h"
......
...@@ -85,6 +85,7 @@ ...@@ -85,6 +85,7 @@
#include <linux/timer.h> #include <linux/timer.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/export.h>
#include "uwb-internal.h" #include "uwb-internal.h"
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/debugfs.h> #include <linux/debugfs.h>
#include <linux/uwb.h> #include <linux/uwb.h>
#include <linux/export.h>
#include "uwb-internal.h" #include "uwb-internal.h"
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/uwb.h> #include <linux/uwb.h>
#include <linux/export.h>
#include "uwb-internal.h" #include "uwb-internal.h"
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <linux/err.h> #include <linux/err.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/export.h>
#include "uwb-internal.h" #include "uwb-internal.h"
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <linux/uwb.h> #include <linux/uwb.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/random.h> #include <linux/random.h>
#include <linux/export.h>
#include "uwb-internal.h" #include "uwb-internal.h"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* This file is released under the GNU GPL v2. * This file is released under the GNU GPL v2.
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/export.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/uwb/umc.h> #include <linux/uwb/umc.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* This file is released under the GNU GPL v2. * This file is released under the GNU GPL v2.
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/export.h>
#include <linux/uwb/umc.h> #include <linux/uwb/umc.h>
int __umc_driver_register(struct umc_driver *umc_drv, struct module *module, int __umc_driver_register(struct umc_driver *umc_drv, struct module *module,
......
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