From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: Unsigned widening casts of binary "not" operations.. Date: Mon, 22 Apr 2013 17:32:22 -0700 Message-ID: <5175D696.8060603@zytor.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Ingo Molnar , Thomas Gleixner , David Miller , "Theodore Ts'o" , Linux Kernel Mailing List , the arch/x86 maintainers , Network Development , "linux-ext4@vger.kernel.org" To: Linus Torvalds Return-path: In-Reply-To: Sender: netdev-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org On 04/22/2013 05:15 PM, Linus Torvalds wrote: > > (It turns out that any use of "UINT_MAX" for a "long" value also results in > this warning, because we define it as "~0ul", so there are other cases of > spurious things where we *intentionally* drop the high bits). > I'm responsible for this particular piece of drain bramage... we should probably just open-code the correct types conditional on the sizes like userspace does. -hpa