Skip to content

Commit d665c12

Browse files
Yi WangJakub Kicinski
authored andcommitted
net: sched: taprio: fix -Wmissing-prototypes warnings
We get one warnings when build kernel W=1: net/sched/sch_taprio.c:1155:6: warning: no previous prototype for ‘taprio_offload_config_changed’ [-Wmissing-prototypes] Make the function static to fix this. Fixes: 9c66d15 ("taprio: Add support for hardware offloading") Signed-off-by: Yi Wang <[email protected]> Acked-by: Vinicius Costa Gomes <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 682fa9f commit d665c12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sched/sch_taprio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ EXPORT_SYMBOL_GPL(taprio_offload_free);
11521152
* offload state (PENDING, ACTIVE, INACTIVE) so it can be visible in dump().
11531153
* This is left as TODO.
11541154
*/
1155-
void taprio_offload_config_changed(struct taprio_sched *q)
1155+
static void taprio_offload_config_changed(struct taprio_sched *q)
11561156
{
11571157
struct sched_gate_list *oper, *admin;
11581158

0 commit comments

Comments
 (0)