Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)