Return-path: Received: from mtiwmhc12.worldnet.att.net ([204.127.131.116]:57831 "EHLO mtiwmhc12.worldnet.att.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754436AbYILCNV (ORCPT ); Thu, 11 Sep 2008 22:13:21 -0400 Message-ID: <48C9D040.8010107@lwfinger.net> (sfid-20080912_041325_780740_942C2F98) Date: Thu, 11 Sep 2008 21:13:20 -0500 From: Larry Finger MIME-Version: 1.0 To: LKML CC: wireless Subject: I need help with a sparse warning Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: In file drivers/net/wireless/p54/p54common.c, the statement priv->rx_mtu = (size_t) le16_to_cpu((__le16)bootrec->data[10]); generates the sparse warning .../p54common.c:185:29: warning: cast to restricted __le16 where bootrec->data is u32, and priv->rx_mtu is u16. What should be done to eliminate this warning? Thanks, Larry