Commit 6f2e3f7d authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller

net_sched: nla_memdup_cookie() can be static

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 044950cc
...@@ -529,7 +529,7 @@ int tcf_action_dump(struct sk_buff *skb, struct list_head *actions, ...@@ -529,7 +529,7 @@ int tcf_action_dump(struct sk_buff *skb, struct list_head *actions,
return err; 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); a->act_cookie = kzalloc(sizeof(*a->act_cookie), GFP_KERNEL);
if (!a->act_cookie) if (!a->act_cookie)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment