Commit afeacc8c1f38b7bb93d4bc7b4ba04c2605061ef0

Authored by Paul Gortmaker
1 parent 79bb1ee46a

fs: add export.h to files using EXPORT_SYMBOL/THIS_MODULE macros

These files were getting <linux/module.h> via an implicit include
path, but we want to crush those out of existence since they cost
time during compiles of processing thousands of lines of headers
for no reason.  Give them the lightweight header that just contains
the EXPORT_SYMBOL infrastructure.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>

Showing 11 changed files with 11 additions and 0 deletions Side-by-side Diff

... ... @@ -22,6 +22,7 @@
22 22  
23 23 #include <linux/blkdev.h>
24 24 #include <linux/mempool.h>
  25 +#include <linux/export.h>
25 26 #include <linux/bio.h>
26 27 #include <linux/workqueue.h>
27 28 #include <linux/slab.h>
fs/gfs2/ops_fstype.c
... ... @@ -14,6 +14,7 @@
14 14 #include <linux/buffer_head.h>
15 15 #include <linux/blkdev.h>
16 16 #include <linux/kthread.h>
  17 +#include <linux/export.h>
17 18 #include <linux/namei.h>
18 19 #include <linux/mount.h>
19 20 #include <linux/gfs2_ondisk.h>
... ... @@ -21,6 +21,7 @@
21 21 */
22 22 #include <linux/gfp.h>
23 23 #include <linux/kernel.h>
  24 +#include <linux/export.h>
24 25 #include <linux/ioprio.h>
25 26 #include <linux/blkdev.h>
26 27 #include <linux/capability.h>
... ... @@ -67,6 +67,7 @@
67 67 #include <linux/buffer_head.h> /* for sync_blockdev() */
68 68 #include <linux/bio.h>
69 69 #include <linux/freezer.h>
  70 +#include <linux/export.h>
70 71 #include <linux/delay.h>
71 72 #include <linux/mutex.h>
72 73 #include <linux/seq_file.h>
... ... @@ -18,6 +18,7 @@
18 18 #include <linux/nfs_page.h>
19 19 #include <linux/nfs_fs.h>
20 20 #include <linux/nfs_mount.h>
  21 +#include <linux/export.h>
21 22  
22 23 #include "internal.h"
23 24 #include "pnfs.h"
... ... @@ -28,6 +28,7 @@
28 28 * such damages.
29 29 */
30 30  
  31 +#include <linux/export.h>
31 32 #include "pnfs.h"
32 33  
33 34 #define NFSDBG_FACILITY NFSDBG_PNFS
... ... @@ -20,6 +20,7 @@
20 20 #include <linux/nfs_mount.h>
21 21 #include <linux/nfs_page.h>
22 22 #include <linux/backing-dev.h>
  23 +#include <linux/export.h>
23 24  
24 25 #include <asm/uaccess.h>
25 26  
... ... @@ -36,6 +36,7 @@
36 36  
37 37 #include <linux/slab.h>
38 38 #include <linux/nfs_fs.h>
  39 +#include <linux/export.h>
39 40 #include "acl.h"
40 41  
41 42  
fs/ocfs2/cluster/tcp.c
... ... @@ -59,6 +59,7 @@
59 59 #include <linux/idr.h>
60 60 #include <linux/kref.h>
61 61 #include <linux/net.h>
  62 +#include <linux/export.h>
62 63 #include <net/tcp.h>
63 64  
64 65 #include <asm/uaccess.h>
fs/ocfs2/dlm/dlmdebug.c
... ... @@ -30,6 +30,7 @@
30 30 #include <linux/sysctl.h>
31 31 #include <linux/spinlock.h>
32 32 #include <linux/debugfs.h>
  33 +#include <linux/export.h>
33 34  
34 35 #include "cluster/heartbeat.h"
35 36 #include "cluster/nodemanager.h"
... ... @@ -12,6 +12,7 @@
12 12 #include <linux/user.h>
13 13 #include <linux/elf.h>
14 14 #include <linux/elfcore.h>
  15 +#include <linux/export.h>
15 16 #include <linux/slab.h>
16 17 #include <linux/highmem.h>
17 18 #include <linux/bootmem.h>