From: Nick Krause <xerofoiify@gmail.com>
To: Petko Manolov <petkan@nucleusys.com>,
linux-usb@vger.kernel.org (open list:USB RTL8150 DRIVER),
netdev@vger.kernel.org (open list:USB RTL8150 DRIVER),
linux-kernel@vger.kernel.org (open list)
Subject: [PATCH] rtl8150: Check if RSR is already defined
Date: Thu, 7 Aug 2014 07:24:54 +0200 [thread overview]
Message-ID: <1407389095-31426-1-git-send-email-xerofoiify@gmail.com> (raw)
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@gmail.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@users.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
next reply other threads:[~2014-08-07 5:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-07 5:24 Nick Krause [this message]
2014-08-07 5:36 ` [PATCH] rtl8150: Check if RSR is already defined David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1407389095-31426-1-git-send-email-xerofoiify@gmail.com \
--to=xerofoiify@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=petkan@nucleusys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).