diff options
author | Yi Wang <wang.yi59@zte.com.cn> | 2019-10-21 19:57:42 -0400 |
---|---|---|
committer | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-10-22 16:35:07 -0400 |
commit | d665c1281bc89ac85b8b0c058c22a3f94640a1d6 (patch) | |
tree | 5c150276c71004a1a4f3d731a2c41611c414433e | |
parent | 682fa9fb6095b629776320766540140707b7137a (diff) |
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: 9c66d1564676 ("taprio: Add support for hardware offloading")
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
-rw-r--r-- | net/sched/sch_taprio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_taprio.c b/net/sched/sch_taprio.c index 6719a65169d4..2121187229cd 100644 --- a/net/sched/sch_taprio.c +++ b/net/sched/sch_taprio.c | |||
@@ -1152,7 +1152,7 @@ EXPORT_SYMBOL_GPL(taprio_offload_free); | |||
1152 | * offload state (PENDING, ACTIVE, INACTIVE) so it can be visible in dump(). | 1152 | * offload state (PENDING, ACTIVE, INACTIVE) so it can be visible in dump(). |
1153 | * This is left as TODO. | 1153 | * This is left as TODO. |
1154 | */ | 1154 | */ |
1155 | void taprio_offload_config_changed(struct taprio_sched *q) | 1155 | static void taprio_offload_config_changed(struct taprio_sched *q) |
1156 | { | 1156 | { |
1157 | struct sched_gate_list *oper, *admin; | 1157 | struct sched_gate_list *oper, *admin; |
1158 | 1158 | ||