提交 6f2e3f7d 编写于 作者: W Wei Yongjun 提交者: 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: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册