Skip to content
This repository
Browse code

block: 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>
  • Loading branch information...
commit d5decd3b9512e35c87492312a72443192eebdda9 1 parent a0e5cc5
authored May 26, 2011
1  block/blk-integrity.c
@@ -24,6 +24,7 @@
24 24
 #include <linux/mempool.h>
25 25
 #include <linux/bio.h>
26 26
 #include <linux/scatterlist.h>
  27
+#include <linux/export.h>
27 28
 #include <linux/slab.h>
28 29
 
29 30
 #include "blk.h"
1  block/ioctl.c
... ...
@@ -1,5 +1,6 @@
1 1
 #include <linux/capability.h>
2 2
 #include <linux/blkdev.h>
  3
+#include <linux/export.h>
3 4
 #include <linux/gfp.h>
4 5
 #include <linux/blkpg.h>
5 6
 #include <linux/hdreg.h>
1  drivers/block/aoe/aoeblk.c
@@ -15,6 +15,7 @@
15 15
 #include <linux/genhd.h>
16 16
 #include <linux/netdevice.h>
17 17
 #include <linux/mutex.h>
  18
+#include <linux/export.h>
18 19
 #include "aoe.h"
19 20
 
20 21
 static DEFINE_MUTEX(aoeblk_mutex);
1  drivers/block/aoe/aoechr.c
@@ -11,6 +11,7 @@
11 11
 #include <linux/slab.h>
12 12
 #include <linux/mutex.h>
13 13
 #include <linux/skbuff.h>
  14
+#include <linux/export.h>
14 15
 #include "aoe.h"
15 16
 
16 17
 enum {

0 notes on commit d5decd3

Please sign in to comment.
Something went wrong with that request. Please try again.