From: Scott Feldman Date: Wed, 13 May 2015 06:03:51 +0000 (-0700) Subject: switchdev: sparse warning: make __switchdev_port_obj_add static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=22c1f67ea5cd3296ee82df7397fb5e5f81eccb98;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git switchdev: sparse warning: make __switchdev_port_obj_add static Signed-off-by: Scott Feldman Signed-off-by: David S. Miller --- 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) } 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;