mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
There is no need to define `eth_hw_addr_set()` in sources anymore because it is already backported into the 5.4.254 kernel: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/include/linux/etherdevice.h?h=v5.4.254&id=24f34f67be24674c5c3ef922de70ab95a0d7ce16
28 lines
829 B
Diff
28 lines
829 B
Diff
From 65e00ae524f82cffb57abf3fa3f8dbac8a2bda7a Mon Sep 17 00:00:00 2001
|
|
From: Taras Pudiak <taras@vyos.io>
|
|
Date: Wed, 30 Aug 2023 14:59:38 +0300
|
|
Subject: [PATCH] Fixed compatibility with kernel 5.4.254
|
|
|
|
---
|
|
compatibility.h | 4 ----
|
|
1 file changed, 4 deletions(-)
|
|
|
|
diff --git a/compatibility.h b/compatibility.h
|
|
index d1e044d..9eee6a9 100644
|
|
--- a/compatibility.h
|
|
+++ b/compatibility.h
|
|
@@ -612,10 +612,6 @@
|
|
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,8,0) */
|
|
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,9,0) */
|
|
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0) */
|
|
- static inline void eth_hw_addr_set(struct net_device *dev, const u8 *addr)
|
|
- {
|
|
- memcpy(dev->dev_addr, addr, 6);
|
|
- }
|
|
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,15,0) */
|
|
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(5,19,0) */
|
|
|
|
--
|
|
2.34.1
|
|
|