]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mtd: Add export.h for EXPORT_SYMBOL/THIS_MODULE where needed
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 10 Jul 2011 16:43:28 +0000 (12:43 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 31 Jul 2011 08:05:33 +0000 (04:05 -0400)
These two common macros will be no longer present everywhere.
Call out the include needs of them explicitly where required.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/mtd/mtdsuper.c
drivers/mtd/nand/nand_bbt.c
drivers/mtd/onenand/onenand_bbt.c
drivers/mtd/ubi/vmt.c

index 16b02a1fc100ce542bfdaad9bb6fdbf7f8b433fe..89f8e66448ab9cc1443e05166ab1bd75e7c46dce 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <linux/mtd/super.h>
 #include <linux/namei.h>
+#include <linux/export.h>
 #include <linux/ctype.h>
 #include <linux/slab.h>
 
index ccbeaa1e4a8ed42ccddac88f2780915dc3407736..4165857752ca267de3efef0a917eec42dc484b00 100644 (file)
@@ -67,6 +67,7 @@
 #include <linux/bitops.h>
 #include <linux/delay.h>
 #include <linux/vmalloc.h>
+#include <linux/export.h>
 
 static int check_pattern_no_oob(uint8_t *buf, struct nand_bbt_descr *td)
 {
index fc2c16a0fd1cd4fbf4e76e33ac87578aaf0b38d7..b2d7fc5ea25d94a5a669b7a57debfe0fbbbec195 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/slab.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/onenand.h>
+#include <linux/export.h>
 
 /**
  * check_short_pattern - [GENERIC] check if a pattern is in the buffer
index 97e093d196725ca2b8529221d5b3a5cbc8e47d72..863835f4aefea5aa6cd4fc481d36092d09a0509e 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/err.h>
 #include <linux/math64.h>
 #include <linux/slab.h>
+#include <linux/export.h>
 #include "ubi.h"
 
 #ifdef CONFIG_MTD_UBI_DEBUG