[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1407389095-31426-1-git-send-email-xerofoiify@gmail.com>
Date: Thu, 7 Aug 2014 07:24:54 +0200
From: Nick Krause <xerofoiify@...il.com>
To: Petko Manolov <petkan@...leusys.com>,
linux-usb@...r.kernel.org (open list:USB RTL8150 DRIVER),
netdev@...r.kernel.org (open list:USB RTL8150 DRIVER),
linux-kernel@...r.kernel.org (open list)
Subject: [PATCH] rtl8150: Check if RSR is already defined
I am getting the following warn
drivers/net/usb/rtl8150.c:30:0: warning: "RSR" redefined
arch/xtensa/include/asm/processor.h:189:0: note: this is the location of the previous definition
I wanted to remove RSR as it is not being used but it is not clear if being used
for documenting purpose. undefining should be enough.
Signed-off-by: Nick Krause <xerofoify@...il.com>
---
drivers/net/usb/rtl8150.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/usb/rtl8150.c b/drivers/net/usb/rtl8150.c
index 6e87e57..7d9a6ba 100644
--- a/drivers/net/usb/rtl8150.c
+++ b/drivers/net/usb/rtl8150.c
@@ -21,6 +21,10 @@
#define DRIVER_AUTHOR "Petko Manolov <petkan@...rs.sourceforge.net>"
#define DRIVER_DESC "rtl8150 based usb-ethernet driver"
+#ifdef RSR
+#undef RSR
+#endif
+
#define IDR 0x0120
#define MAR 0x0126
#define CR 0x012e
--
2.0.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists