aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtd_blkdevs.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2007-05-28 15:28:34 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2007-06-28 15:24:50 -0400
commit356d70f19d949a11320ab626037b2d197a8e8b51 (patch)
tree5c78cf2f6011ed56504abd2c58d8833e4b2ecd3f /drivers/mtd/mtd_blkdevs.c
parent029a9eb1f667ca71fe7eb3bf8962f01ac4d252a5 (diff)
[MTD] mtdcore.c: share syms with mtd_blkdev.c
Fix the sparse warnings generated by the implicit dependency of mtd_blkdevs.c and mtd_core.c for the two symbols mtd_table and mtd_table_mutex. This is done by adding an local header file mtdcore.h to define these (including the warning about the non-proliferation of these symbols). Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/mtd_blkdevs.c')
-rw-r--r--drivers/mtd/mtd_blkdevs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c
index 781660565cb0..a8a158708293 100644
--- a/drivers/mtd/mtd_blkdevs.c
+++ b/drivers/mtd/mtd_blkdevs.c
@@ -23,10 +23,9 @@
23#include <linux/kthread.h> 23#include <linux/kthread.h>
24#include <asm/uaccess.h> 24#include <asm/uaccess.h>
25 25
26static LIST_HEAD(blktrans_majors); 26#include "mtdcore.h"
27 27
28extern struct mutex mtd_table_mutex; 28static LIST_HEAD(blktrans_majors);
29extern struct mtd_info *mtd_table[];
30 29
31struct mtd_blkcore_priv { 30struct mtd_blkcore_priv {
32 struct task_struct *thread; 31 struct task_struct *thread;