Skip to content

Commit

Permalink
switchdev: sparse warning: make __switchdev_port_obj_add static
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Scott Feldman authored and David S. Miller committed May 13, 2015
1 parent 9449c3c commit 22c1f67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/switchdev/switchdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ int switchdev_port_attr_set(struct net_device *dev, struct switchdev_attr *attr)
}
EXPORT_SYMBOL_GPL(switchdev_port_attr_set);

int __switchdev_port_obj_add(struct net_device *dev, struct switchdev_obj *obj)
static int __switchdev_port_obj_add(struct net_device *dev,
struct switchdev_obj *obj)
{
const struct switchdev_ops *ops = dev->switchdev_ops;
struct net_device *lower_dev;
Expand Down

0 comments on commit 22c1f67

Please sign in to comment.