aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev_ioctl.c
diff options
context:
space:
mode:
authorKory Maincent <[email protected]>2024-06-12 15:04:02 +0000
committerJakub Kicinski <[email protected]>2024-06-18 01:25:53 +0000
commitefb459303dd5dd6e198a0d58322dc04c3356dc23 (patch)
tree8effbe2051b671def9ba3b960daf8cc9377a76a3 /net/core/dev_ioctl.c
parentnet: dwc-xlgmac: fix missing MODULE_DESCRIPTION() warning (diff)
downloadkernel-efb459303dd5dd6e198a0d58322dc04c3356dc23.tar.gz
kernel-efb459303dd5dd6e198a0d58322dc04c3356dc23.zip
net: Move dev_set_hwtstamp_phylib to net/core/dev.h
This declaration was added to the header to be called from ethtool. ethtool is separated from core for code organization but it is not really a separate entity, it controls very core things. As ethtool is an internal stuff it is not wise to have it in netdevice.h. Move the declaration to net/core/dev.h instead. Remove the EXPORT_SYMBOL_GPL call as ethtool can not be built as a module. Reviewed-by: Willem de Bruijn <[email protected]> Signed-off-by: Kory Maincent <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/dev_ioctl.c')
-rw-r--r--net/core/dev_ioctl.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/core/dev_ioctl.c b/net/core/dev_ioctl.c
index 9a66cf5015f2..b9719ed3c3fd 100644
--- a/net/core/dev_ioctl.c
+++ b/net/core/dev_ioctl.c
@@ -363,7 +363,6 @@ int dev_set_hwtstamp_phylib(struct net_device *dev,
return 0;
}
-EXPORT_SYMBOL_GPL(dev_set_hwtstamp_phylib);
static int dev_set_hwtstamp(struct net_device *dev, struct ifreq *ifr)
{