linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: sched: taprio: fix -Wmissing-prototypes warnings
@ 2019-10-21 11:47 Yi Wang
  2019-10-21 21:23 ` Vinicius Costa Gomes
  0 siblings, 1 reply; 2+ messages in thread
From: Yi Wang @ 2019-10-21 11:47 UTC (permalink / raw)
  To: jhs
  Cc: xiyou.wangcong, jiri, davem, netdev, linux-kernel, xue.zhihong,
	wang.yi59, up2wing, wang.liang82

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.

Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
---
 net/sched/sch_taprio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/sched/sch_taprio.c b/net/sched/sch_taprio.c
index 6719a65..2121187 100644
--- a/net/sched/sch_taprio.c
+++ b/net/sched/sch_taprio.c
@@ -1152,7 +1152,7 @@ void taprio_offload_free(struct tc_taprio_qopt_offload *offload)
  * 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;
 
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net: sched: taprio: fix -Wmissing-prototypes warnings
  2019-10-21 11:47 [PATCH] net: sched: taprio: fix -Wmissing-prototypes warnings Yi Wang
@ 2019-10-21 21:23 ` Vinicius Costa Gomes
  0 siblings, 0 replies; 2+ messages in thread
From: Vinicius Costa Gomes @ 2019-10-21 21:23 UTC (permalink / raw)
  To: Yi Wang, jhs
  Cc: xiyou.wangcong, jiri, davem, netdev, linux-kernel, xue.zhihong,
	wang.yi59, up2wing, wang.liang82

Hi,

Yi Wang <wang.yi59@zte.com.cn> writes:

> 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.
>
> Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
> ---

This looks like it should be directed to net-next.

When you re-send it for net-next, feel free to add my:

Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>


Cheers,
--
Vinicius

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-21 21:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-21 11:47 [PATCH] net: sched: taprio: fix -Wmissing-prototypes warnings Yi Wang
2019-10-21 21:23 ` Vinicius Costa Gomes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).