net: devlink: remove unused devlink_port_get_phys_port_name() function
authorJiri Pirko <jiri@mellanox.com>
Thu, 28 Mar 2019 12:56:40 +0000 (13:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Mar 2019 19:55:30 +0000 (12:55 -0700)
Now it is unused, remove it.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/devlink.h
net/core/devlink.c

index 85e577d6ec3b2d8e883c2e54f23cf569034fabe3..31d5cec4d06bd9f0910d43957c5d7d12f6a8c6d8 100644 (file)
@@ -583,8 +583,6 @@ void devlink_port_attrs_set(struct devlink_port *devlink_port,
                            enum devlink_port_flavour flavour,
                            u32 port_number, bool split,
                            u32 split_subport_number);
-int devlink_port_get_phys_port_name(struct devlink_port *devlink_port,
-                                   char *name, size_t len);
 int devlink_sb_register(struct devlink *devlink, unsigned int sb_index,
                        u32 size, u16 ingress_pools_count,
                        u16 egress_pools_count, u16 ingress_tc_count,
index 8bb2c3e3f202ba1ee35ad02ec4e2d824a1a42d92..6bbd07e3861e29b1ab2b849733be0d3cabc9ba08 100644 (file)
@@ -5446,13 +5446,6 @@ static int __devlink_port_phys_port_name_get(struct devlink_port *devlink_port,
        return 0;
 }
 
-int devlink_port_get_phys_port_name(struct devlink_port *devlink_port,
-                                   char *name, size_t len)
-{
-       return __devlink_port_phys_port_name_get(devlink_port, name, len);
-}
-EXPORT_SYMBOL_GPL(devlink_port_get_phys_port_name);
-
 int devlink_sb_register(struct devlink *devlink, unsigned int sb_index,
                        u32 size, u16 ingress_pools_count,
                        u16 egress_pools_count, u16 ingress_tc_count,