developer | 617abbd | 2024-04-23 14:50:01 +0800 | [diff] [blame^] | 1 | From 0bf57d6aacff7859372d546ef491f2722098bc0c Mon Sep 17 00:00:00 2001 |
| 2 | From: Shayne Chen <shayne.chen@mediatek.com> |
| 3 | Date: Mon, 27 Nov 2023 16:39:36 +0800 |
| 4 | Subject: [PATCH 36/61] backports: update kernel version check for |
| 5 | eth_hw_addr_set() |
| 6 | |
| 7 | Kernel v5.4.260 has added this API, so update kernel version check in |
| 8 | backports include. |
| 9 | |
| 10 | CR-Id: WCNCR00238098 |
| 11 | Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> |
| 12 | Change-Id: I708aabbe51de9d480932ce03b30d004bf1d67ebd |
| 13 | --- |
| 14 | backport-include/linux/etherdevice.h | 4 ++-- |
| 15 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 16 | |
| 17 | diff --git a/backport-include/linux/etherdevice.h b/backport-include/linux/etherdevice.h |
| 18 | index 51a7d6d..ecc3bc2 100644 |
| 19 | --- a/backport-include/linux/etherdevice.h |
| 20 | +++ b/backport-include/linux/etherdevice.h |
| 21 | @@ -39,7 +39,7 @@ static inline void u64_to_ether_addr(u64 u, u8 *addr) |
| 22 | } |
| 23 | #endif /* LINUX_VERSION_IS_LESS(4,11,0) */ |
| 24 | |
| 25 | -#if LINUX_VERSION_IS_LESS(5,15,0) |
| 26 | +#if LINUX_VERSION_IS_LESS(5,4,260) |
| 27 | /** |
| 28 | * eth_hw_addr_set - Assign Ethernet address to a net_device |
| 29 | * @dev: pointer to net_device structure |
| 30 | @@ -51,7 +51,7 @@ static inline void eth_hw_addr_set(struct net_device *dev, const u8 *addr) |
| 31 | { |
| 32 | ether_addr_copy(dev->dev_addr, addr); |
| 33 | } |
| 34 | -#endif /* LINUX_VERSION_IS_LESS(5,15,0) */ |
| 35 | +#endif /* LINUX_VERSION_IS_LESS(5,4,260) */ |
| 36 | |
| 37 | #if LINUX_VERSION_IS_LESS(5,16,0) |
| 38 | static inline int backport_device_get_mac_address(struct device *dev, char *addr) |
| 39 | -- |
| 40 | 2.39.2 |
| 41 | |