Commit f3bcc0179ab8145615a3b409d652cad1395fb7f3

Authored by Paul Gortmaker
1 parent 4bb33cc890

mtd: Add export.h for EXPORT_SYMBOL/THIS_MODULE where needed

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>

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

drivers/mtd/mtdsuper.c
... ... @@ -14,6 +14,7 @@
14 14  
15 15 #include <linux/mtd/super.h>
16 16 #include <linux/namei.h>
  17 +#include <linux/export.h>
17 18 #include <linux/ctype.h>
18 19 #include <linux/slab.h>
19 20  
drivers/mtd/nand/nand_bbt.c
... ... @@ -67,6 +67,7 @@
67 67 #include <linux/bitops.h>
68 68 #include <linux/delay.h>
69 69 #include <linux/vmalloc.h>
  70 +#include <linux/export.h>
70 71  
71 72 static int check_pattern_no_oob(uint8_t *buf, struct nand_bbt_descr *td)
72 73 {
drivers/mtd/onenand/onenand_bbt.c
... ... @@ -15,6 +15,7 @@
15 15 #include <linux/slab.h>
16 16 #include <linux/mtd/mtd.h>
17 17 #include <linux/mtd/onenand.h>
  18 +#include <linux/export.h>
18 19  
19 20 /**
20 21 * check_short_pattern - [GENERIC] check if a pattern is in the buffer
drivers/mtd/ubi/vmt.c
... ... @@ -26,6 +26,7 @@
26 26 #include <linux/err.h>
27 27 #include <linux/math64.h>
28 28 #include <linux/slab.h>
  29 +#include <linux/export.h>
29 30 #include "ubi.h"
30 31  
31 32 #ifdef CONFIG_MTD_UBI_DEBUG