Просмотр исходного кода

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>
Paul Gortmaker 14 лет назад
Родитель
Сommit
d5decd3b95
4 измененных файлов с 4 добавлено и 0 удалено
  1. 1 0
      block/blk-integrity.c
  2. 1 0
      block/ioctl.c
  3. 1 0
      drivers/block/aoe/aoeblk.c
  4. 1 0
      drivers/block/aoe/aoechr.c

+ 1 - 0
block/blk-integrity.c

@@ -24,6 +24,7 @@
 #include <linux/mempool.h>
 #include <linux/bio.h>
 #include <linux/scatterlist.h>
+#include <linux/export.h>
 #include <linux/slab.h>
 
 #include "blk.h"

+ 1 - 0
block/ioctl.c

@@ -1,5 +1,6 @@
 #include <linux/capability.h>
 #include <linux/blkdev.h>
+#include <linux/export.h>
 #include <linux/gfp.h>
 #include <linux/blkpg.h>
 #include <linux/hdreg.h>

+ 1 - 0
drivers/block/aoe/aoeblk.c

@@ -15,6 +15,7 @@
 #include <linux/genhd.h>
 #include <linux/netdevice.h>
 #include <linux/mutex.h>
+#include <linux/export.h>
 #include "aoe.h"
 
 static DEFINE_MUTEX(aoeblk_mutex);

+ 1 - 0
drivers/block/aoe/aoechr.c

@@ -11,6 +11,7 @@
 #include <linux/slab.h>
 #include <linux/mutex.h>
 #include <linux/skbuff.h>
+#include <linux/export.h>
 #include "aoe.h"
 
 enum {