Skip to content

Commit

Permalink
uwb: Add export.h for EXPORT_SYMBOL/THIS_MODULE as required
Browse files Browse the repository at this point in the history
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: Paul Gortmaker <paul.gortmaker@windriver.com>
  • Loading branch information
Paul Gortmaker committed Oct 31, 2011
1 parent c7394ef commit 475c0a6
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/uwb/est.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
*/
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/export.h>

#include "uwb-internal.h"

Expand Down
1 change: 1 addition & 0 deletions drivers/uwb/i1480/dfu/dfu.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <linux/device.h>
#include <linux/uwb.h>
#include <linux/random.h>
#include <linux/export.h>

/*
* i1480_rceb_check - Check RCEB for expected field values
Expand Down
1 change: 1 addition & 0 deletions drivers/uwb/ie.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*/

#include <linux/slab.h>
#include <linux/export.h>
#include "uwb-internal.h"

/**
Expand Down
1 change: 1 addition & 0 deletions drivers/uwb/lc-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/export.h>
#include <linux/err.h>
#include <linux/kdev_t.h>
#include <linux/random.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/uwb/lc-rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <linux/etherdevice.h>
#include <linux/usb.h>
#include <linux/slab.h>
#include <linux/export.h>

#include "uwb-internal.h"

Expand Down
1 change: 1 addition & 0 deletions drivers/uwb/neh.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
#include <linux/timer.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/export.h>

#include "uwb-internal.h"

Expand Down
1 change: 1 addition & 0 deletions drivers/uwb/pal.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/kernel.h>
#include <linux/debugfs.h>
#include <linux/uwb.h>
#include <linux/export.h>

#include "uwb-internal.h"

Expand Down
1 change: 1 addition & 0 deletions drivers/uwb/radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/
#include <linux/kernel.h>
#include <linux/uwb.h>
#include <linux/export.h>

#include "uwb-internal.h"

Expand Down
1 change: 1 addition & 0 deletions drivers/uwb/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/export.h>

#include "uwb-internal.h"

Expand Down
1 change: 1 addition & 0 deletions drivers/uwb/rsv.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <linux/uwb.h>
#include <linux/slab.h>
#include <linux/random.h>
#include <linux/export.h>

#include "uwb-internal.h"

Expand Down
1 change: 1 addition & 0 deletions drivers/uwb/umc-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* This file is released under the GNU GPL v2.
*/
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/slab.h>
#include <linux/uwb/umc.h>

Expand Down
1 change: 1 addition & 0 deletions drivers/uwb/umc-drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* This file is released under the GNU GPL v2.
*/
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/uwb/umc.h>

int __umc_driver_register(struct umc_driver *umc_drv, struct module *module,
Expand Down

0 comments on commit 475c0a6

Please sign in to comment.