Return-path: Received: from mail-fx0-f158.google.com ([209.85.220.158]:34092 "EHLO mail-fx0-f158.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751112AbZDUNWG (ORCPT ); Tue, 21 Apr 2009 09:22:06 -0400 Received: by fxm2 with SMTP id 2so2514293fxm.37 for ; Tue, 21 Apr 2009 06:22:02 -0700 (PDT) MIME-Version: 1.0 Date: Tue, 21 Apr 2009 16:22:01 +0300 Message-ID: (sfid-20090421_152211_340522_BE12C816) Subject: [PATCH ] [RESEND] mwl8: fix build warning. From: Rami Rosen To: linville@tuxdriver.com Cc: linux-wireless , David Miller , Johannes Berg , buytenh@marvell.com Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: This patch fixes a build warning in mwl8.c. (Marvell TOPDOG wireless driver) The warning it fixes is: "large integer implicitly truncated to unsigned type." The rx_ctrl member of the mwl8k_rx_desc struct is 8 bit (__u8 ), whereas trying to assign it a 32 bit value (which is returned from cpu_to_le32()) causes the compiler to issue a truncation warning. Signed-off-by: Rami Rosen -- (wireless-next) diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index 57a0268..8bc016c 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c @@ -893,8 +893,7 @@ static int mwl8k_rxq_init(struct ieee80211_hw *hw, int index) rx_desc->next_rx_desc_phys_addr = cpu_to_le32(rxq->rx_desc_dma + nexti * sizeof(*rx_desc)); - rx_desc->rx_ctrl = - cpu_to_le32(MWL8K_RX_CTRL_OWNED_BY_HOST); + rx_desc->rx_ctrl = MWL8K_RX_CTRL_OWNED_BY_HOST; } return 0;