summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorYi Wang <wang.yi59@zte.com.cn>2019-10-22 01:57:42 +0200
committerJakub Kicinski <jakub.kicinski@netronome.com>2019-10-22 22:35:07 +0200
commitd665c1281bc89ac85b8b0c058c22a3f94640a1d6 (patch)
tree5c150276c71004a1a4f3d731a2c41611c414433e /net/sched
parentMerge branch 'bnxt_en-bug-fixes' (diff)
downloadlinux-d665c1281bc89ac85b8b0c058c22a3f94640a1d6.tar.xz
linux-d665c1281bc89ac85b8b0c058c22a3f94640a1d6.zip
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>
Diffstat (limited to '')
-rw-r--r--net/sched/sch_taprio.c2
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);
* offload state (PENDING, ACTIVE, INACTIVE) so it can be visible in dump().
* This is left as TODO.
*/
-void taprio_offload_config_changed(struct taprio_sched *q)
+static void taprio_offload_config_changed(struct taprio_sched *q)
{
struct sched_gate_list *oper, *admin;