Skip to content

Commit 9f31f4b

Browse files
vapierDavid Woodhouse
authored andcommitted
mtd: uclinux: mark local stuff static
The uclinux_ram_mtdinfo, uclinux_romfs, and uclinux_point symbols do not need to be visible outside of this module, so mark them static. Signed-off-by: Mike Frysinger <vapier@gentoo.org> CC: Greg Ungerer <gerg@uclinux.org> CC: uclinux-dev@uclinux.org CC: linux-mtd@lists.infradead.org Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
1 parent 6ae392c commit 9f31f4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/mtd/maps/uclinux.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ struct map_info uclinux_ram_map = {
3030
.size = 0,
3131
};
3232

33-
struct mtd_info *uclinux_ram_mtdinfo;
33+
static struct mtd_info *uclinux_ram_mtdinfo;
3434

3535
/****************************************************************************/
3636

37-
struct mtd_partition uclinux_romfs[] = {
37+
static struct mtd_partition uclinux_romfs[] = {
3838
{ .name = "ROMfs" }
3939
};
4040

4141
#define NUM_PARTITIONS ARRAY_SIZE(uclinux_romfs)
4242

4343
/****************************************************************************/
4444

45-
int uclinux_point(struct mtd_info *mtd, loff_t from, size_t len,
45+
static int uclinux_point(struct mtd_info *mtd, loff_t from, size_t len,
4646
size_t *retlen, void **virt, resource_size_t *phys)
4747
{
4848
struct map_info *map = mtd->priv;

0 commit comments

Comments
 (0)