From 29980b29f3752d40713c4dcab7c6c3ac60a0cb89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Garc=C3=A9s?= Date: Sun, 22 Oct 2023 10:18:28 +0000 Subject: [PATCH] Add LTS backport for eth_hw_addr_set_fix --- include/osdep_service_linux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osdep_service_linux.h b/include/osdep_service_linux.h index 8ade04fb..b03d0de3 100644 --- a/include/osdep_service_linux.h +++ b/include/osdep_service_linux.h @@ -217,7 +217,7 @@ typedef void *timer_hdl_context; typedef unsigned long systime; -#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)) +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) && !((LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0) && LINUX_VERSION_CODE > KERNEL_VERSION(5, 10, 187) ) || (LINUX_VERSION_CODE < KERNEL_VERSION(5, 5, 0) && LINUX_VERSION_CODE > KERNEL_VERSION(5, 4, 250) ) || (LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0) && LINUX_VERSION_CODE > KERNEL_VERSION(4, 19, 290) ))) /* Porting from linux kernel v5.15-rc1 48eab831ae8b9f7002a533fa4235eed63ea1f1a3 */ static inline void eth_hw_addr_set(struct net_device *dev, const u8 *addr) {