diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2017-02-14 14:19:32 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-14 15:02:17 -0500 |
commit | 6f2e3f7d9785dacb358b48b44950182b5c13e4bc (patch) | |
tree | dbed4d1cfd5590a7d615f129b28caac6632a0de5 /net/sched | |
parent | 044950cc48ced25ccb2f4ea7c31228399e19d5d6 (diff) | |
download | op-kernel-dev-6f2e3f7d9785dacb358b48b44950182b5c13e4bc.zip op-kernel-dev-6f2e3f7d9785dacb358b48b44950182b5c13e4bc.tar.gz |
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>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/act_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 3c5e29b..f219ff3 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -529,7 +529,7 @@ errout: 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) |