public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
From: david.chosrova@libertysurf.fr
To: kernel-janitors@vger.kernel.org
Subject: [PATCH] Fix sparse message rtl8192u
Date: Wed, 24 Nov 2010 21:41:43 +0000	[thread overview]
Message-ID: <1290634903.4ced8697b0603@webmail.aliceadsl.fr> (raw)



Hello,

Fix sparse message:

drivers/staging/rtl8192u/r8192U_core.c:247:1: warning: "eqMacAddr" redefined
In file included from drivers/staging/rtl8192u/:81:81:
drivers/staging/rtl8192u/dot11d.h:35:1: warning: this is the location of the
previous definition


if ENABLE_DOT11D is enabled eqMacAddr is defined twice.

Signed-off-by: David Chosrova <david.chosrova@libertysurf.fr>




diff --git a/drivers/staging/rtl8192u/r8192U_core.c
b/drivers/staging/rtl8192u/r8192U_core.c
index 494f180..4a4a747 100644
--- a/drivers/staging/rtl8192u/r8192U_core.c
+++ b/drivers/staging/rtl8192u/r8192U_core.c
@@ -242,10 +242,12 @@ static void rtl819x_set_channel_map(u8 channel_plan,
struct r8192_priv* priv)
        }
        return;
 }
-#endif
+#else

 #define eqMacAddr(a,b) ( ((a)[0]=(b)[0] && (a)[1]=(b)[1] && (a)[2]=(b)[2] &&
(a)[3]=(b)[3] && (a)[4]=(b)[4] && (a)[5]=(b)[5]) ? 1:0 )

+#endif
+
 #define        rx_hal_is_cck_rate(_pdrvinfo)\
                        (_pdrvinfo->RxRate = DESC90_RATE1M ||\
                        _pdrvinfo->RxRate = DESC90_RATE2M ||\



             reply	other threads:[~2010-11-24 21:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-24 21:41 david.chosrova [this message]
2010-11-25  5:36 ` [PATCH] Fix sparse message rtl8192u Dan Carpenter
2010-11-25  9:39 ` david chosrova
2010-11-25 10:04 ` Dan Carpenter
2010-11-27 22:37 ` David Chosrova
2010-11-28 21:19 ` Dan Carpenter
2010-11-30 15:35   ` [PATCH] Staging: rtl8192u: remove dead code to disable dot11d David Chosrova

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=1290634903.4ced8697b0603@webmail.aliceadsl.fr \
    --to=david.chosrova@libertysurf.fr \
    --cc=kernel-janitors@vger.kernel.org \
    /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