mtd: lpddr_cmds: make function static
authorBrian Norris <computersforpeace@gmail.com>
Wed, 28 Aug 2013 18:19:05 +0000 (11:19 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Sun, 27 Oct 2013 23:27:03 +0000 (16:27 -0700)
do_xxlock() is only used locally. This silences a sparse warning:

drivers/mtd/lpddr/lpddr_cmds.c:706:5: warning: no previous prototype for 'do_xxlock' [-Wmissing-prototypes]

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/lpddr/lpddr_cmds.c

index d3cfe26beeaa6bcc771a085f1e3f41d641af4c19..2ef19aa0086bee62d51a9986ea50f5983461869c 100644 (file)
@@ -703,7 +703,7 @@ static int lpddr_erase(struct mtd_info *mtd, struct erase_info *instr)
 
 #define DO_XXLOCK_LOCK         1
 #define DO_XXLOCK_UNLOCK       2
-int do_xxlock(struct mtd_info *mtd, loff_t adr, uint32_t len, int thunk)
+static int do_xxlock(struct mtd_info *mtd, loff_t adr, uint32_t len, int thunk)
 {
        int ret = 0;
        struct map_info *map = mtd->priv;