mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
![Ben Dooks](/assets/img/avatar_default.png)
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>
11 lines
295 B
C
11 lines
295 B
C
/* 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];
|