From: Atul Sowani <sowani@gmail.com>
To: johannes@sipsolutions.net
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 2.6.36 1/1] mac80211: fix for tx.c compiler warnings.
Date: Mon, 08 Nov 2010 21:31:33 +0530 [thread overview]
Message-ID: <4CD81EDD.1000309@gmail.com> (raw)
Added conditional compilation with CONFIG_MAC80211_MESH to avoid compile time
warning about declared but unused variable.
Signed-off-by: Atul Sowani <sowani@gmail.com>
---
diff -uprN a/net/mac80211/tx.c b/net/mac80211/tx.c
--- a/net/mac80211/tx.c 2010-10-21 02:00:22.000000000 +0530
+++ b/net/mac80211/tx.c 2010-11-08 10:37:42.331750460 +0530
@@ -1699,7 +1699,9 @@ netdev_tx_t ieee80211_subif_start_xmit(s
u16 ethertype, hdrlen, meshhdrlen = 0;
__le16 fc;
struct ieee80211_hdr hdr;
+#ifdef CONFIG_MAC80211_MESH
struct ieee80211s_hdr mesh_hdr;
+#endif
const u8 *encaps_data;
int encaps_len, skip_header_bytes;
int nh_pos, h_pos;
--
Atul Sowani (sowani@gmail.com)
http://savannah.gnu.org/users/atul
------------------------------------------------------------------------
next reply other threads:[~2010-11-08 16:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-08 16:01 Atul Sowani [this message]
2010-11-08 17:49 ` [PATCH 2.6.36 1/1] mac80211: fix for tx.c compiler warnings Johannes Berg
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=4CD81EDD.1000309@gmail.com \
--to=sowani@gmail.com \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@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;
as well as URLs for NNTP newsgroup(s).