summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdcore.h
diff options
context:
space:
mode:
authorBen Dooks2007-05-28 21:28:34 +0200
committerDavid Woodhouse2007-06-28 21:24:50 +0200
commit356d70f19d949a11320ab626037b2d197a8e8b51 (patch)
tree5c78cf2f6011ed56504abd2c58d8833e4b2ecd3f /drivers/mtd/mtdcore.h
parent[MTD] [NOR] cfi_cmdset_0001.c: sparse fixes (diff)
downloadkernel-qcow2-linux-356d70f19d949a11320ab626037b2d197a8e8b51.tar.gz
kernel-qcow2-linux-356d70f19d949a11320ab626037b2d197a8e8b51.tar.xz
kernel-qcow2-linux-356d70f19d949a11320ab626037b2d197a8e8b51.zip
[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/mtdcore.h')
-rw-r--r--drivers/mtd/mtdcore.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/mtd/mtdcore.h b/drivers/mtd/mtdcore.h
new file mode 100644
index 000000000000..a33251f4b872
--- /dev/null
+++ b/drivers/mtd/mtdcore.h
@@ -0,0 +1,11 @@
+/* linux/drivers/mtd/mtdcore.h
+ *
+ * Header file for driver private mtdcore exports
+ *
+ */
+
+/* These are exported solely for the purpose of mtd_blkdevs.c. You
+ should not use them for _anything_ else */
+
+extern struct mutex mtd_table_mutex;
+extern struct mtd_info *mtd_table[MAX_MTD_DEVICES];