From patchwork Tue Sep 1 12:33:06 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jussi Kivilinna X-Patchwork-Id: 45056 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n81CXBBX011694 for ; Tue, 1 Sep 2009 12:33:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754117AbZIAMdG (ORCPT ); Tue, 1 Sep 2009 08:33:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754494AbZIAMdG (ORCPT ); Tue, 1 Sep 2009 08:33:06 -0400 Received: from saarni.dnainternet.net ([83.102.40.136]:54183 "EHLO saarni.dnainternet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754421AbZIAMdF (ORCPT ); Tue, 1 Sep 2009 08:33:05 -0400 Received: from localhost (localhost [127.0.0.1]) by saarni.dnainternet.net (Postfix) with ESMTP id 7A9EF56C92; Tue, 1 Sep 2009 15:33:06 +0300 (EEST) X-Virus-Scanned: DNA Postiturva at dnainternet.net X-Spam-Flag: NO X-Spam-Score: -0.348 X-Spam-Level: X-Spam-Status: No, score=-0.348 tagged_above=-9999 required=6 tests=[AWL=-0.348] Received: from saarni.dnainternet.net ([83.102.40.136]) by localhost (saarni.dnainternet.net [127.0.0.1]) (amavisd-new, port 10041) with ESMTP id TqWuCMf88Sns; Tue, 1 Sep 2009 15:33:06 +0300 (EEST) Received: from oliivipuu.dnainternet.net (oliivipuu.dnainternet.net [83.102.40.215]) by saarni.dnainternet.net (Postfix) with ESMTP id 5450456C62; Tue, 1 Sep 2009 15:33:06 +0300 (EEST) Received: from fate.lan (dyn2-85-23-163-218.psoas.suomi.net [85.23.163.218]) by oliivipuu.dnainternet.net (Postfix) with ESMTP id 434992BAEA; Tue, 1 Sep 2009 15:33:06 +0300 (EEST) From: Jussi Kivilinna Subject: [PATCH 3/4] rndis_wlan: fix sparse endianess warnings To: linux-wireless@vger.kernel.org Cc: "John W. Linville" Date: Tue, 01 Sep 2009 15:33:06 +0300 Message-ID: <20090901123306.9213.26466.stgit@fate.lan> In-Reply-To: <20090901123255.9213.57970.stgit@fate.lan> References: <20090901123255.9213.57970.stgit@fate.lan> User-Agent: StGIT/0.14.2 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Signed-off-by: Jussi Kivilinna --- drivers/net/wireless/rndis_wlan.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index add2eb8..54175b6 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c @@ -253,8 +253,8 @@ struct ndis_80211_pmkid_cand_list { struct ndis_80211_status_indication { __le32 status_type; union { - enum ndis_80211_media_stream_mode media_stream_mode; - enum ndis_80211_radio_status radio_status; + __le32 media_stream_mode; + __le32 radio_status; struct ndis_80211_auth_request auth_request[0]; struct ndis_80211_pmkid_cand_list cand_list; } u; @@ -1296,7 +1296,7 @@ static int add_wep_key(struct usbnet *usbdev, const u8 *key, int key_len, static int add_wpa_key(struct usbnet *usbdev, const u8 *key, int key_len, int index, const u8 *addr, const u8 *rx_seq, - int seq_len, u32 cipher, int flags) + int seq_len, u32 cipher, __le32 flags) { struct rndis_wlan_private *priv = get_rndis_wlan_priv(usbdev); struct ndis_80211_key ndis_key; @@ -2023,7 +2023,7 @@ static int rndis_add_key(struct wiphy *wiphy, struct net_device *netdev, { struct rndis_wlan_private *priv = wiphy_priv(wiphy); struct usbnet *usbdev = priv->usbdev; - int flags; + __le32 flags; devdbg(usbdev, "rndis_add_key(%i, %pM, %08x)", key_index, mac_addr, params->cipher);