History

switchdev: sparse warning: make __switchdev_port_obj_add static

Scott Feldman committed 11 years ago

Commit 22c1f671 parent 9449c3c1 file · +2 −1Browse files

Showing the changes to net/switchdev/switchdev.c (1 of 1 file). Show all

Unified · Split

net/switchdev/switchdev.c+2−1
@@ -188,7 +188,8 @@ int switchdev_port_attr_set(struct net_device *dev, struct switchdev_attr *attr) · 187 unmodified lines
188}188}
189EXPORT_SYMBOL_GPL(switchdev_port_attr_set);189EXPORT_SYMBOL_GPL(switchdev_port_attr_set);
190 190
191int __switchdev_port_obj_add(struct net_device *dev, struct switchdev_obj *obj)191static 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;