diff options
author | William Gathoye | 2020-02-16 19:46:06 +0100 |
---|---|---|
committer | William Gathoye | 2020-06-09 09:52:51 +0200 |
commit | ba276b7a0ae3f31f1987d1df7c1c69bdd90783e7 (patch) | |
tree | a00dbd2e99dae03737c62fd48781a8d61072c09d /linux-4.20.patch | |
parent | e954da6f8bb8d31b4530420eabda20e46ba80d1a (diff) | |
download | aur-ba276b7a0ae3f31f1987d1df7c1c69bdd90783e7.tar.gz |
Use template from Arch Linux DKMS article as much as possible
Diffstat (limited to 'linux-4.20.patch')
-rw-r--r-- | linux-4.20.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/linux-4.20.patch b/linux-4.20.patch new file mode 100644 index 000000000000..d764d857a536 --- /dev/null +++ b/linux-4.20.patch @@ -0,0 +1,56 @@ +*** a/asix.c 2019-01-16 12:10:22.829797420 +0100 +--- b/asix.c 2019-01-16 12:11:59.521251711 +0100 +*************** +*** 1034,1041 **** +--- 1034,1043 ---- + .set_wol = ax8817x_set_wol, + .get_eeprom_len = ax8817x_get_eeprom_len, + .get_eeprom = ax8817x_get_eeprom, ++ #if LINUX_VERSION_CODE < KERNEL_VERSION(4,20,0) + .get_settings = ax8817x_get_settings, + .set_settings = ax8817x_set_settings, ++ #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(4,20,0) */ + }; + + static int ax8817x_ioctl(struct net_device *net, struct ifreq *rq, int cmd) +*************** +*** 1327,1334 **** +--- 1329,1338 ---- + .set_wol = ax8817x_set_wol, + .get_eeprom_len = ax8817x_get_eeprom_len, + .get_eeprom = ax8817x_get_eeprom, ++ #if LINUX_VERSION_CODE < KERNEL_VERSION(4,20,0) + .get_settings = ax8817x_get_settings, + .set_settings = ax8817x_set_settings, ++ #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(4,20,0) */ + }; + + static int ax88772_bind(struct usbnet *dev, struct usb_interface *intf) +*************** +*** 1934,1941 **** +--- 1938,1947 ---- + .set_wol = ax8817x_set_wol, + .get_eeprom_len = ax8817x_get_eeprom_len, + .get_eeprom = ax8817x_get_eeprom, ++ #if LINUX_VERSION_CODE < KERNEL_VERSION(4,20,0) + .get_settings = ax8817x_get_settings, + .set_settings = ax8817x_set_settings, ++ #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(4,20,0) */ + #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) + .set_tx_csum = ax88772b_set_tx_csum, + .get_tx_csum = ax88772b_get_tx_csum, +*** a/axusbnet.c 2019-01-16 12:10:27.516534560 +0100 +--- b/axusbnet.c 2019-01-16 12:12:34.741781672 +0100 +*************** +*** 896,903 **** +--- 896,905 ---- + + /* drivers may override default ethtool_ops in their bind() routine */ + static struct ethtool_ops axusbnet_ethtool_ops = { ++ #if LINUX_VERSION_CODE < KERNEL_VERSION(4,20,0) + .get_settings = axusbnet_get_settings, + .set_settings = axusbnet_set_settings, ++ #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(4,20,0) */ + .get_link = axusbnet_get_link, + .nway_reset = axusbnet_nway_reset, + .get_drvinfo = axusbnet_get_drvinfo, |