]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
net_sched: nla_memdup_cookie() can be static
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 14 Feb 2017 14:19:32 +0000 (14:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2017 20:02:17 +0000 (15:02 -0500)
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>
net/sched/act_api.c

index 3c5e29ba65942801682278aed31644454b82c154..f219ff325ed4b816866e46a66c97c6f7724ec81f 100644 (file)
@@ -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)