[openwrt/openwrt] realtek: Prefer linux/* includes over asm/* ones

LEDE Commits lede-commits at lists.infradead.org
Mon Nov 24 15:29:46 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/c6ed536839a4d66d4a05f1da8d0ffc6173cbae13

commit c6ed536839a4d66d4a05f1da8d0ffc6173cbae13
Author: Sven Eckelmann <sven at narfation.org>
AuthorDate: Sun Nov 23 12:37:20 2025 +0100

    realtek: Prefer linux/* includes over asm/* ones
    
    It is preferred in the Linux kernel to include the "normal" linux/*
    include files instead of the asm includes files when available.
    
    Signed-off-by: Sven Eckelmann <sven at narfation.org>
    Link: https://github.com/openwrt/openwrt/pull/20906
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c b/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c
index 542c029da3..2cdb726f9a 100644
--- a/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c
+++ b/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c
@@ -3,6 +3,7 @@
  * Copyright (C) 2020 B. Koblitz
  */
 
+#include <linux/cacheflush.h>
 #include <linux/dma-mapping.h>
 #include <linux/etherdevice.h>
 #include <linux/interrupt.h>
@@ -18,7 +19,6 @@
 #include <linux/pkt_sched.h>
 #include <net/dsa.h>
 #include <net/switchdev.h>
-#include <asm/cacheflush.h>
 
 #include <asm/mach-rtl838x/mach-rtl83xx.h>
 #include "rtl838x_eth.h"




More information about the lede-commits mailing list