diff options
author | Scott Feldman <sfeldma@gmail.com> | 2015-05-13 02:03:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-13 12:26:27 -0400 |
commit | 22c1f67ea5cd3296ee82df7397fb5e5f81eccb98 (patch) | |
tree | 1384bae39aac34c958115d00f04c22d4a0f872ac /net/switchdev/switchdev.c | |
parent | 9449c3cd90472141cf081af88181a56163ff7132 (diff) |
switchdev: sparse warning: make __switchdev_port_obj_add static
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
-rw-r--r-- | net/switchdev/switchdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c index 65d49d4477b9..a267f7728165 100644 --- a/net/switchdev/switchdev.c +++ b/net/switchdev/switchdev.c | |||
@@ -188,7 +188,8 @@ int switchdev_port_attr_set(struct net_device *dev, struct switchdev_attr *attr) | |||
188 | } | 188 | } |
189 | EXPORT_SYMBOL_GPL(switchdev_port_attr_set); | 189 | EXPORT_SYMBOL_GPL(switchdev_port_attr_set); |
190 | 190 | ||
191 | int __switchdev_port_obj_add(struct net_device *dev, struct switchdev_obj *obj) | 191 | static int __switchdev_port_obj_add(struct net_device *dev, |
192 | struct switchdev_obj *obj) | ||
192 | { | 193 | { |
193 | const struct switchdev_ops *ops = dev->switchdev_ops; | 194 | const struct switchdev_ops *ops = dev->switchdev_ops; |
194 | struct net_device *lower_dev; | 195 | struct net_device *lower_dev; |