Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 14 Oct 2002 21:03:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 14 Oct 2002 21:03:42 -0400 Received: from tapu.f00f.org ([66.60.186.129]:23203 "EHLO tapu.f00f.org") by vger.kernel.org with ESMTP id ; Mon, 14 Oct 2002 21:03:37 -0400 Date: Mon, 14 Oct 2002 18:09:30 -0700 From: Chris Wedgwood To: Andi Kleen Cc: Daniele Lugli , linux-kernel@vger.kernel.org Subject: Re: unhappy with current.h Message-ID: <20021015010930.GB11639@tapu.f00f.org> References: <3DAB1F00.667B82B5@inrete.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-No-Archive: Yes Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 605 Lines: 18 On Mon, Oct 14, 2002 at 10:45:30PM +0200, Andi Kleen wrote: > How about changing the definition to: > #define current ((struct task_struct *)get_current()) Is there some magic way to make it an inline function? That way collisions would be at the compiler level as opposed to the preprocessor level (pretending there is a strong separation here). --cw - 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/