提交 44fe63fc 编写于 作者: U Uwe Kleine-König 提交者: Artem Bityutskiy

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: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: NMike Frysinger <vapier@gentoo.org>
Acked-by: NGreg Ungerer <gerg@uclinux.org>
Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
上级 81f53ff8
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册