From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from charlotte.tuxdriver.com ([70.61.120.58]:49376 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753509AbZDUOAz (ORCPT ); Tue, 21 Apr 2009 10:00:55 -0400 Date: Tue, 21 Apr 2009 09:57:16 -0400 From: "John W. Linville" To: Rami Rosen Cc: linux-wireless , David Miller , Johannes Berg , buytenh@marvell.com Subject: Re: [PATCH ] [RESEND] mwl8: fix build warning. Message-ID: <20090421135716.GJ17805@tuxdriver.com> (sfid-20090421_160059_150069_912C4084) References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-wireless-owner@vger.kernel.org List-ID: On Tue, Apr 21, 2009 at 04:22:01PM +0300, Rami Rosen wrote: > 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 Oh, duh...I should have looked for the obvious answer... :-) Thanks, John -- John W. Linville Someday the world will need a hero, and you linville@tuxdriver.com might be all we have. Be ready.