Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262662AbUCJPga (ORCPT ); Wed, 10 Mar 2004 10:36:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262665AbUCJPg3 (ORCPT ); Wed, 10 Mar 2004 10:36:29 -0500 Received: from fw.osdl.org ([65.172.181.6]:36788 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S262662AbUCJPg2 (ORCPT ); Wed, 10 Mar 2004 10:36:28 -0500 Date: Wed, 10 Mar 2004 07:43:10 -0800 (PST) From: Linus Torvalds To: Richard Henderson cc: Thomas Schlichter , Andrew Morton , linux-kernel@vger.kernel.org, gcc@gcc.gnu.org Subject: Re: [PATCH] fix warning about duplicate 'const' In-Reply-To: <20040310054918.GB4068@twiddle.net> Message-ID: References: <200403090043.21043.thomas.schlichter@web.de> <20040308161410.49127bdf.akpm@osdl.org> <200403090217.40867.thomas.schlichter@web.de> <20040310054918.GB4068@twiddle.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 963 Lines: 23 On Tue, 9 Mar 2004, Richard Henderson wrote: > > seems dicey at best. I'm not sure what to do about this, actually. > We might could do something with a new __nonqual_typeof(a) that > strips outermost type qualifications, but I havn't given that much > thought. Ok, let's try just stripping the "const" out of the min/max macros, and see what complains. What the code _really_ wants to do is to just compare two types for being basically equal, and in real life what Linux really would prefer is to have "types" as first-class citizens and being able to compare them directly instead of playing games. And we may end up having that as a preprocessor phase (ie I might add it to the semantic parse thing). Linus - 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/