From 726d9b2ca3f75cba9f1d03e519c2b2e8bf6523a7 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 3 Feb 2013 18:25:07 +0100 Subject: [PATCH] compat: netdev_set_default_ethtool_ops() is not in kernel 3.7.5 netdev_set_default_ethtool_ops() should be added to compat for every 3.7.X series kernel as it is also not in 3.7.5. Signed-off-by: Hauke Mehrtens --- compat/compat-3.8.c | 3 --- include/linux/compat-3.8.h | 2 -- 2 files changed, 5 deletions(-) diff --git a/compat/compat-3.8.c b/compat/compat-3.8.c index be77767516ae..b3d399c0aab9 100644 --- a/compat/compat-3.8.c +++ b/compat/compat-3.8.c @@ -18,16 +18,13 @@ #include "hid-ids.h" #include -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,7,5)) void netdev_set_default_ethtool_ops(struct net_device *dev, const struct ethtool_ops *ops) { if (!dev->ethtool_ops) dev->ethtool_ops = ops; } - EXPORT_SYMBOL_GPL(netdev_set_default_ethtool_ops); -#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,7,5) */ /* a list of devices that shouldn't be handled by HID core at all */ static const struct hid_device_id hid_ignore_list[] = { diff --git a/include/linux/compat-3.8.h b/include/linux/compat-3.8.h index 3af253b9a868..b55a46d91e9d 100644 --- a/include/linux/compat-3.8.h +++ b/include/linux/compat-3.8.h @@ -9,10 +9,8 @@ #include #include -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,7,5)) extern void netdev_set_default_ethtool_ops(struct net_device *dev, const struct ethtool_ops *ops); -#endif #define HID_BUS_ANY 0xffff #define HID_GROUP_ANY 0x0000 -- 2.30.2