Skip to contentSkip to conversation

switchdev: make __switchdev_port_obj_add static

PATCH New Jiri Pirko 1 participant 1 message May 13, 2015

Subsystems (3)
lore
Share & tools
lore

Jiri Pirko

author maintainer
#0 lore raw

PATCH 1/1 switchdev: make __switchdev_port_obj_add static

Kill sparse warning:

Quoted 1 line
Quoted 1 line

net/switchdev/switchdev.c:190:5: sparse: symbol '__switchdev_port_obj_add' was not declared. Should it be static?

---
 net/switchdev/switchdev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
net/switchdev/switchdev.c +2 -1
index 65d49d4..a267f77 100644
@@ -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;
Signature · 1 line
1.9.3