Search Linux Wireless

Re: [PATCH ] mwl8: fix build warning.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 21, 2009 at 02:32:00PM +0200, Johannes Berg wrote:
> On Tue, 2009-04-21 at 14:57 +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."
> 
> > -		rx_desc->rx_ctrl =
> > -			cpu_to_le32(MWL8K_RX_CTRL_OWNED_BY_HOST);
> > +		rx_desc->rx_ctrl = MWL8K_RX_CTRL_OWNED_BY_HOST;
> 
> Umm. This really needs to come with an explanation.

Yeah -- trading a warning for a silent error seems unreasonable. :-)

-- 
John W. Linville		Someday the world will need a hero, and you
linville@xxxxxxxxxxxxx			might be all we have.  Be ready.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux