Skip to contentSkip to conversation

mtd: maps: Make uclinux_ram_map static

PATCH New Thomas Huth 1 participant 1 message Apr 27, 2019 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: maps: Make uclinux_ram_map static

The blackfin architecture has been removed a while ago, so there is no more need to declare uclinux_ram_map as a global structure.

---
 drivers/mtd/maps/uclinux.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/mtd/maps/uclinux.c +1 -7
index aef030ca8601..de4c46318abb 100644
@@ -31,13 +31,7 @@
 #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 = {
+static struct map_info uclinux_ram_map = {
 	.name = MAP_NAME,
 	.size = 0,
 };
Signature · 1 line
2.21.0