mirror of
https://github.com/torvalds/linux.git
synced 2024-10-30 08:42:47 +00:00
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: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
044950cc48
commit
6f2e3f7d97
@ -529,7 +529,7 @@ errout:
|
|||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user