From: Zhu Yi <yi.zhu@intel.com>
To: linux-wireless@vger.kernel.org,
"John W. Linville" <linville@tuxdriver.com>
Subject: [PATCH 3/6] mac80211: fix 1-bit bitfield to unsigned
Date: Sat, 9 Jun 2007 01:03:55 +0800 [thread overview]
Message-ID: <20070608170355.GA17262@mail.intel.com> (raw)
Fix 17 of these pairs of sparse warnings since it's difficult for a 1-bit
bitfield to have both a value bit and a sign bit.
net/mac80211/sta_info.h:105:16: error: dubious bitfield without explicit
`signed' or `unsigned'
net/mac80211/sta_info.h:107:15: error: dubious bitfield without explicit
`signed' or `unsigned'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
---
net/mac80211/sta_info.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h
index 3eb3649..1179c32 100644
--- a/net/mac80211/sta_info.h
+++ b/net/mac80211/sta_info.h
@@ -102,9 +102,9 @@ struct sta_info {
#ifdef CONFIG_MAC80211_DEBUGFS
int debugfs_registered;
#endif
- int assoc_ap:1; /* whether this is an AP that we are
- * associated with as a client */
- int dls_sta:1; /* whether this stations is a DLS peer of us */
+ unsigned int assoc_ap:1; /* whether this is an AP that we are
+ * associated with as a client */
+ unsigned int dls_sta:1; /* whether this stations is a DLS peer of us */
#define DLS_STATUS_OK 0
#define DLS_STATUS_NOLINK 1
--
1.5.0.rc2.g73a2
reply other threads:[~2007-06-08 17:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20070608170355.GA17262@mail.intel.com \
--to=yi.zhu@intel.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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).