net: unexport a handful of dev_* functions
We have a bunch of functions which are only used under net/core/ yet they get exported. Remove the exports. Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -8645,7 +8645,6 @@ void dev_set_group(struct net_device *dev, int new_group)
|
|||||||
{
|
{
|
||||||
dev->group = new_group;
|
dev->group = new_group;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(dev_set_group);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dev_pre_changeaddr_notify - Call NETDEV_PRE_CHANGEADDR.
|
* dev_pre_changeaddr_notify - Call NETDEV_PRE_CHANGEADDR.
|
||||||
@@ -8760,7 +8759,6 @@ int dev_change_carrier(struct net_device *dev, bool new_carrier)
|
|||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
return ops->ndo_change_carrier(dev, new_carrier);
|
return ops->ndo_change_carrier(dev, new_carrier);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(dev_change_carrier);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dev_get_phys_port_id - Get device physical port ID
|
* dev_get_phys_port_id - Get device physical port ID
|
||||||
@@ -8778,7 +8776,6 @@ int dev_get_phys_port_id(struct net_device *dev,
|
|||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
return ops->ndo_get_phys_port_id(dev, ppid);
|
return ops->ndo_get_phys_port_id(dev, ppid);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(dev_get_phys_port_id);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dev_get_phys_port_name - Get device physical port name
|
* dev_get_phys_port_name - Get device physical port name
|
||||||
@@ -8801,7 +8798,6 @@ int dev_get_phys_port_name(struct net_device *dev,
|
|||||||
}
|
}
|
||||||
return devlink_compat_phys_port_name_get(dev, name, len);
|
return devlink_compat_phys_port_name_get(dev, name, len);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(dev_get_phys_port_name);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dev_get_port_parent_id - Get the device's port parent identifier
|
* dev_get_port_parent_id - Get the device's port parent identifier
|
||||||
@@ -8883,7 +8879,6 @@ int dev_change_proto_down(struct net_device *dev, bool proto_down)
|
|||||||
dev->proto_down = proto_down;
|
dev->proto_down = proto_down;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(dev_change_proto_down);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dev_change_proto_down_reason - proto down reason
|
* dev_change_proto_down_reason - proto down reason
|
||||||
@@ -8908,7 +8903,6 @@ void dev_change_proto_down_reason(struct net_device *dev, unsigned long mask,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(dev_change_proto_down_reason);
|
|
||||||
|
|
||||||
struct bpf_xdp_link {
|
struct bpf_xdp_link {
|
||||||
struct bpf_link link;
|
struct bpf_link link;
|
||||||
|
|||||||
Reference in New Issue
Block a user