Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers: sbe-2t3e3: Mark functions as static in ctrl.c

Mark functions t3e3_set_loopback(), t3e3_reg_read(), t3e3_reg_write(),
t3e3_port_get(), t3e3_port_set(), t3e3_port_get_stats() and
t3e3_port_del_stats() as static in ctrl.c because they are not used
outside this file.

This eliminates the following warnings in ctrl.c:
drivers/staging/sbe-2t3e3/ctrl.c:34:6: warning: no previous prototype for ‘t3e3_set_loopback’ [-Wmissing-prototypes]
drivers/staging/sbe-2t3e3/ctrl.c:98:6: warning: no previous prototype for ‘t3e3_reg_read’ [-Wmissing-prototypes]
drivers/staging/sbe-2t3e3/ctrl.c:135:6: warning: no previous prototype for ‘t3e3_reg_write’ [-Wmissing-prototypes]
drivers/staging/sbe-2t3e3/ctrl.c:167:6: warning: no previous prototype for ‘t3e3_port_get’ [-Wmissing-prototypes]
drivers/staging/sbe-2t3e3/ctrl.c:172:6: warning: no previous prototype for ‘t3e3_port_set’ [-Wmissing-prototypes]
drivers/staging/sbe-2t3e3/ctrl.c:219:6: warning: no previous prototype for ‘t3e3_port_get_stats’ [-Wmissing-prototypes]
drivers/staging/sbe-2t3e3/ctrl.c:285:6: warning: no previous prototype for ‘t3e3_port_del_stats’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rashika Kheria and committed by
Greg Kroah-Hartman
39e2ce9a 22bf290e

+7 -7
+7 -7
drivers/staging/sbe-2t3e3/ctrl.c
··· 31 31 sc->p.frame_type = mode; 32 32 } 33 33 34 - void t3e3_set_loopback(struct channel *sc, u32 mode) 34 + static void t3e3_set_loopback(struct channel *sc, u32 mode) 35 35 { 36 36 u32 tx, rx; 37 37 ··· 95 95 } 96 96 97 97 98 - void t3e3_reg_read(struct channel *sc, u32 *reg, u32 *val) 98 + static void t3e3_reg_read(struct channel *sc, u32 *reg, u32 *val) 99 99 { 100 100 u32 i; 101 101 ··· 132 132 } 133 133 } 134 134 135 - void t3e3_reg_write(struct channel *sc, u32 *reg) 135 + static void t3e3_reg_write(struct channel *sc, u32 *reg) 136 136 { 137 137 u32 i; 138 138 ··· 164 164 } 165 165 } 166 166 167 - void t3e3_port_get(struct channel *sc, t3e3_param_t *param) 167 + static void t3e3_port_get(struct channel *sc, t3e3_param_t *param) 168 168 { 169 169 memcpy(param, &(sc->p), sizeof(t3e3_param_t)); 170 170 } 171 171 172 - void t3e3_port_set(struct channel *sc, t3e3_param_t *param) 172 + static void t3e3_port_set(struct channel *sc, t3e3_param_t *param) 173 173 { 174 174 if (param->frame_mode != 0xff) 175 175 cpld_set_frame_mode(sc, param->frame_mode); ··· 216 216 cpld_set_scrambler(sc, param->scrambler); 217 217 } 218 218 219 - void t3e3_port_get_stats(struct channel *sc, 219 + static void t3e3_port_get_stats(struct channel *sc, 220 220 t3e3_stats_t *stats) 221 221 { 222 222 u32 result; ··· 282 282 memcpy(stats, &(sc->s), sizeof(t3e3_stats_t)); 283 283 } 284 284 285 - void t3e3_port_del_stats(struct channel *sc) 285 + static void t3e3_port_del_stats(struct channel *sc) 286 286 { 287 287 memset(&(sc->s), 0, sizeof(t3e3_stats_t)); 288 288 }