Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 31 Mar 2002 03:42:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 31 Mar 2002 03:42:29 -0500 Received: from leibniz.math.psu.edu ([146.186.130.2]:6396 "EHLO math.psu.edu") by vger.kernel.org with ESMTP id ; Sun, 31 Mar 2002 03:42:21 -0500 Date: Sun, 31 Mar 2002 03:42:20 -0500 (EST) From: Alexander Viro To: Andrew Morton cc: "David S. Miller" , tim@birdsnest.maths.tcd.ie, linux-kernel@vger.kernel.org Subject: Re: linux-2.5.7 In-Reply-To: <3CA6C91D.67186FAB@zip.com.au> 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 On Sun, 31 Mar 2002, Andrew Morton wrote: > Could you remind us what problem this is solving? The > #ifdef approach seemed reasonable and there's no indication > here why weak linkage is needed. The thing we want here _is_ weak linkage - "return -ENOSYS unless you have the real thing". You can emulate that with ifdefs, but that's what it is - emulation. IOW, what we want actually belongs to linker, not compiler. When file looks like #ifdef FOO #else #endif we are really talking about "make it an alias of sys_ni_syscall() and let override that". - 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/