History

switchdev: sparse warning: make __switchdev_port_obj_add static

Scott Feldman committed 11 years ago

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

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
188188 }
189189 EXPORT_SYMBOL_GPL(switchdev_port_attr_set);
190190
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)
192193 {
193194 const struct switchdev_ops *ops = dev->switchdev_ops;
194195 struct net_device *lower_dev;