net_sched: nla_memdup_cookie() can be static
Subsystems (3)
PATCH 1/1 net_sched: nla_memdup_cookie() can be static
From: Wei Yongjun <[email protected]>
Fixes the following sparse warning:
net/sched/act_api.c:532:5: warning:
symbol 'nla_memdup_cookie' was not declared. Should it be static?
Signed-off-by Wei Yongjun <[email protected]>
--- net/sched/act_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/sched/act_api.c +1 -1
@@ -529,7 +529,7 @@ int tcf_action_dump(struct sk_buff *skb, struct list_head *actions,return err; } -int nla_memdup_cookie (struct tc_action *a,struct nlattr **tb) +static int nla_memdup_cookie (struct tc_action *a,struct nlattr **tb) { a->act_cookie =kzalloc (sizeof (*a->act_cookie),GFP_KERNEL );if (!a->act_cookie)
From: Wei Yongjun <[email protected]>
Date: Tue, 14 Feb 2017 14:19:32 +0000
Quoted 8 lines
From: Wei Yongjun <[email protected]>
Fixes the following sparse warning:
net/sched/act_api.c:532:5: warning:
symbol 'nla_memdup_cookie' was not declared. Should it be static?Signed-off-by Wei Yongjun <[email protected]>
Applied, thank you.