[PATCH] net: r8169: fix builds on archs without system.h header

Denis Orlov denorl2009 at gmail.com
Sun Jun 4 14:05:55 PDT 2023

Some architectures do lack <asm/system.h> header, which breaks building
RTL8169 for them. However, it doesn't even seem to be needed there. From
a quick glance at archs that do have one such header, its contents are
quite platform-specific. Getting rid of this include fixes building the
driver, so do just that.

Signed-off-by: Denis Orlov <denorl2009 at gmail.com>
 drivers/net/r8169_main.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/r8169_main.c b/drivers/net/r8169_main.c
index 5b448fa029..2225c26190 100644
--- a/drivers/net/r8169_main.c
+++ b/drivers/net/r8169_main.c
@@ -17,7 +17,6 @@
 #include <linux/pci.h>
 #include <linux/sizes.h>
 #include <asm/unaligned.h>
-#include <asm/system.h>
 #include "r8169.h"
 #include "r8169_firmware.h"

More information about the barebox mailing list