diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2013-01-16 15:36:56 +0100 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-02-04 09:26:30 +0200 |
commit | 44fe63fc0fcbfef65b5a8c015abb4dbbbcc90f23 (patch) | |
tree | 71074847d659682f7a71b944818db47d92bdbaea /drivers/mtd | |
parent | 81f53ff89c136b72fc35a91d676aca2bc332bd33 (diff) | |
download | linux-stable-44fe63fc0fcbfef65b5a8c015abb4dbbbcc90f23.tar.gz linux-stable-44fe63fc0fcbfef65b5a8c015abb4dbbbcc90f23.tar.bz2 linux-stable-44fe63fc0fcbfef65b5a8c015abb4dbbbcc90f23.zip |
mtd: uclinux: add a comment about why uclinux_ram_map must not be static
I was (at least) the second person trying to fix a warning by sparse, so
document in the code why this is a bad idea and add an extern declaration to
make sparse happy.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/maps/uclinux.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mtd/maps/uclinux.c b/drivers/mtd/maps/uclinux.c index f56d0aa4404b..c1af83db5202 100644 --- a/drivers/mtd/maps/uclinux.c +++ b/drivers/mtd/maps/uclinux.c @@ -29,6 +29,12 @@ #define MAP_NAME "ram" #endif +/* + * Blackfin uses uclinux_ram_map during startup, so it must not be static. + * Provide a dummy declaration to make sparse happy. + */ +extern struct map_info uclinux_ram_map; + struct map_info uclinux_ram_map = { .name = MAP_NAME, .size = 0, |