build/patch/misc/wireless-rtl8192eu-Fix-building-on-5.4.251-kernel.patch

26 lines
1.0 KiB
Diff
Raw Normal View History

From 4889d0e19ef3563a14e5a4eb732108a949741a18 Mon Sep 17 00:00:00 2001
From: Julian Sikorski <belegdol+github@gmail.com>
Date: Sat, 29 Jul 2023 11:43:00 +0000
Subject: [PATCH] Fix building on 5.4.251+ kernel
---
include/osdep_service_linux.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/rtl8192eu/include/osdep_service_linux.h b/drivers/net/wireless/rtl8192eu/include/osdep_service_linux.h
index 8ade04f..3f8b0fa 100644
--- a/drivers/net/wireless/rtl8192eu/include/osdep_service_linux.h
+++ b/drivers/net/wireless/rtl8192eu/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, 5, 0)) || LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 251)
/* Porting from linux kernel v5.15-rc1 48eab831ae8b9f7002a533fa4235eed63ea1f1a3 */
static inline void eth_hw_addr_set(struct net_device *dev, const u8 *addr)
{
--
2.34.1