md: Add in export.h for files using EXPORT_SYMBOL
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 27 May 2011 19:50:58 +0000 (15:50 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 31 Oct 2011 23:31:19 +0000 (19:31 -0400)
These files were getting the defines for EXPORT_SYMBOL because
device.h was including module.h.  But we are going to put an
end to that.  So add the proper export.h include now.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/md/dm-snap-persistent.c
drivers/md/dm-snap-transient.c
drivers/md/dm-uevent.c
lib/raid6/mktables.c
lib/raid6/recov.c

index d1f1d70171038cf9836832b68c63ad4b1d15297a..3ac415675b6c778b5dd22aaaf4ee6c2dc4ca48eb 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/mm.h>
 #include <linux/pagemap.h>
 #include <linux/vmalloc.h>
+#include <linux/export.h>
 #include <linux/slab.h>
 #include <linux/dm-io.h>
 
index a0898a66a2f848f581ae770a93de74011a9249c8..1ce9a2586e4134a79ec3289808f8229e9aaa2080 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/mm.h>
 #include <linux/pagemap.h>
 #include <linux/vmalloc.h>
+#include <linux/export.h>
 #include <linux/slab.h>
 #include <linux/dm-io.h>
 
index 6b1e3b61b25eacc469fe17e586c45d7f20687dfe..8efe033bab55d0d5b0d92178eeb604100aa60085 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/slab.h>
 #include <linux/kobject.h>
 #include <linux/dm-ioctl.h>
+#include <linux/export.h>
 
 #include "dm.h"
 #include "dm-uevent.h"
index 3b1500843bbac2dfa85daaeb85058480294080d4..8a3780902cec8ca4141a3646169a341be2b3c7a8 100644 (file)
@@ -60,6 +60,7 @@ int main(int argc, char *argv[])
        uint8_t exptbl[256], invtbl[256];
 
        printf("#include <linux/raid/pq.h>\n");
+       printf("#include <linux/export.h>\n");
 
        /* Compute multiplication table */
        printf("\nconst u8  __attribute__((aligned(256)))\n"
index 8590d19cf52231660a6a906acdc12bcf2156c9c9..fe275d7b6b36e920e37b991d7953938d4306d95c 100644 (file)
@@ -18,6 +18,7 @@
  * the syndrome.)
  */
 
+#include <linux/export.h>
 #include <linux/raid/pq.h>
 
 /* Recover two failed data blocks. */