Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753877Ab3DWAcp (ORCPT ); Mon, 22 Apr 2013 20:32:45 -0400 Received: from terminus.zytor.com ([198.137.202.10]:53923 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753346Ab3DWAco (ORCPT ); Mon, 22 Apr 2013 20:32:44 -0400 Message-ID: <5175D696.8060603@zytor.com> Date: Mon, 22 Apr 2013 17:32:22 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: Linus Torvalds 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" Subject: Re: Unsigned widening casts of binary "not" operations.. References: In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 685 Lines: 19 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/