Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 31 Jul 2002 14:14:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 31 Jul 2002 14:14:03 -0400 Received: from [195.39.17.254] ([195.39.17.254]:2176 "EHLO Elf.ucw.cz") by vger.kernel.org with ESMTP id ; Wed, 31 Jul 2002 14:14:02 -0400 Date: Tue, 30 Jul 2002 11:17:48 +0200 From: Pavel Machek To: Ingo Molnar Cc: Russell King , Christoph Hellwig , Linus Torvalds , Robert Love , linux-kernel@vger.kernel.org Subject: Re: [patch] cli()/sti() cleanup, 2.5.27-A2 Message-ID: <20020730091747.GA331@elf.ucw.cz> References: <20020722144626.D2838@flint.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i X-Warning: Reading this can be dangerous to your mental health. Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 881 Lines: 28 Hi! > > > It's not that we confuse flags with some other flag all that > > > frequently that would necessiate some structure-based more abstract > > > protection of these variables. > > are you sure type-checking is really needed? Sure people can mess up the > flags variable, but 64-bit archs could do a sizeof at compile-time. Yes, it is needed; type-checking can be easily implemented as { unsigned long foo; (&foo == &arg); } -- that gives warning when arg is not unsigned long. Pavel -- Worst form of spam? Adding advertisment signatures ala sourceforge.net. What goes next? Inserting advertisment *into* email? - 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/