]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: taprio: fix -Wmissing-prototypes warnings
authorYi Wang <wang.yi59@zte.com.cn>
Mon, 21 Oct 2019 23:57:42 +0000 (07:57 +0800)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 22 Oct 2019 20:35:07 +0000 (13:35 -0700)
commit32c717bc59c0bb1577b6595aabd1b3bdd7c0c77a
tree5c150276c71004a1a4f3d731a2c41611c414433e
parent4e00bcd71ee183fb0957e20688b975ad727afd9c
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: 6f3f73366f14 ("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>
net/sched/sch_taprio.c