[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150416205739.GY889@ZenIV.linux.org.uk>
Date: Thu, 16 Apr 2015 21:57:39 +0100
From: Al Viro <viro@...IV.linux.org.uk>
To: Sathya Perla <Sathya.Perla@...lex.Com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: sparse warning about endianness mismatch on 0xffff assignment
On Thu, Apr 16, 2015 at 06:04:40AM +0000, Sathya Perla wrote:
> What would be the best way of fixing this warning?
>
> a) __le16 var = cpu_to_le16(0xFFFF);
That would do just fine - it's a constant expression, actually.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists