aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/devlink.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-01-17 03:27:42 +0000
committerDavid S. Miller <davem@davemloft.net>2018-01-19 14:36:29 -0500
commit43dd7512b51c0f3dd8170916bd3eeb2eba808ed1 (patch)
tree50a18301203e880870c7d225181031d4af7d4f44 /net/core/devlink.c
parentmlxsw: spectrum: Make function mlxsw_sp_kvdl_part_occ() static (diff)
downloadlinux-dev-43dd7512b51c0f3dd8170916bd3eeb2eba808ed1.tar.xz
linux-dev-43dd7512b51c0f3dd8170916bd3eeb2eba808ed1.zip
devlink: Make some functions static
Fixes the following sparse warnings: net/core/devlink.c:2297:25: warning: symbol 'devlink_resource_find' was not declared. Should it be static? net/core/devlink.c:2322:6: warning: symbol 'devlink_resource_validate_children' was not declared. Should it be static? Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/devlink.c')
-rw-r--r--net/core/devlink.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c
index dd7d6dd07bfb..66d36705fb9d 100644
--- a/net/core/devlink.c
+++ b/net/core/devlink.c
@@ -2294,7 +2294,7 @@ static int devlink_nl_cmd_dpipe_table_counters_set(struct sk_buff *skb,
counters_enable);
}
-struct devlink_resource *
+static struct devlink_resource *
devlink_resource_find(struct devlink *devlink,
struct devlink_resource *resource, u64 resource_id)
{
@@ -2319,7 +2319,8 @@ devlink_resource_find(struct devlink *devlink,
return NULL;
}
-void devlink_resource_validate_children(struct devlink_resource *resource)
+static void
+devlink_resource_validate_children(struct devlink_resource *resource)
{
struct devlink_resource *child_resource;
bool size_valid = true;