From 3bcbfe4031e8ab1d3e013d2e7e7d4730c9970ad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Garc=C3=A9s?= Date: Mon, 3 Jul 2023 18:19:34 +0200 Subject: [PATCH] Fix compilation error on kernels < 5.15 --- include/drv_types_linux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drv_types_linux.h b/include/drv_types_linux.h index 97c8576..6264a4d 100644 --- a/include/drv_types_linux.h +++ b/include/drv_types_linux.h @@ -19,7 +19,7 @@ /* Porting from linux kernel v5.15 48eab831ae8b9f7002a533fa4235eed63ea1f1a3 3f6cffb8604b537e3d7ea040d7f4368689638eaf*/ static inline void eth_hw_addr_set(struct net_device *dev, const u8 *addr) { - memcpy(dev->dev_addr, addr, ETH_ALEN) + memcpy(dev->dev_addr, addr, ETH_ALEN); } #endif