Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 22 Jul 2002 10:03:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 22 Jul 2002 10:03:04 -0400 Received: from [195.63.194.11] ([195.63.194.11]:13834 "EHLO mail.stock-world.de") by vger.kernel.org with ESMTP id ; Mon, 22 Jul 2002 10:03:03 -0400 Message-ID: <3D3C0FF8.1040301@evision.ag> Date: Mon, 22 Jul 2002 16:00:24 +0200 From: Marcin Dalecki Reply-To: martin@dalecki.de User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020625 X-Accept-Language: en-us, en, pl, ru MIME-Version: 1.0 To: Ingo Molnar CC: Christoph Hellwig , Russell King , Linus Torvalds , Robert Love , linux-kernel@vger.kernel.org Subject: Re: [patch] cli()/sti() cleanup, 2.5.27-A2 References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 867 Lines: 32 Ingo Molnar wrote: > On Mon, 22 Jul 2002, Christoph Hellwig wrote: > > >>yupp, you're right. could you take the prototype changes anyway? > > > i'm hesitant for a number of reasons. Eg. irq_save_off(flags) has to be a > macro, otherwise we move the assignment into the irqs-off section. > Compare: > > flags = irq_save_off(); > > with: > irq_flags_off(flags); > > sure, it could be written as: > > flags = irq_save(); > irq_off(); > > but then again the macro form is more compact. By 2 characters. And hiding the side-effect. We don't have the notion of var argument passing like in pascal or C++ here. - 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/