Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 22 Jul 2002 10:05:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 22 Jul 2002 10:05:25 -0400 Received: from mx1.elte.hu ([157.181.1.137]:23453 "HELO mx1.elte.hu") by vger.kernel.org with SMTP id ; Mon, 22 Jul 2002 10:05:08 -0400 Date: Mon, 22 Jul 2002 16:07:03 +0200 (CEST) From: Ingo Molnar Reply-To: Ingo Molnar To: martin@dalecki.de Cc: Christoph Hellwig , Russell King , Linus Torvalds , Robert Love , Subject: Re: [patch] cli()/sti() cleanup, 2.5.27-A2 In-Reply-To: <3D3C0FF8.1040301@evision.ag> Message-ID: 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: 899 Lines: 35 On Mon, 22 Jul 2002, Marcin Dalecki wrote: > > 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 a full line ... > [...] And hiding the side-effect. We don't have the notion of var > argument passing like in pascal or C++ here. well, it's a well-known side effect on the other hand. Ingo - 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/