Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265675AbUA0Xyh (ORCPT ); Tue, 27 Jan 2004 18:54:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265805AbUA0Xyh (ORCPT ); Tue, 27 Jan 2004 18:54:37 -0500 Received: from ozlabs.org ([203.10.76.45]:5508 "EHLO ozlabs.org") by vger.kernel.org with ESMTP id S265675AbUA0Xyc (ORCPT ); Tue, 27 Jan 2004 18:54:32 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16406.63734.400759.452955@cargo.ozlabs.ibm.com> Date: Wed, 28 Jan 2004 10:49:10 +1100 From: Paul Mackerras To: davidm@hpl.hp.com Cc: Andrew Morton , Jes Sorensen , linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org Subject: Re: [patch] 2.6.1-mm5 compile do not use shared extable code for ia64 In-Reply-To: <16406.36741.510353.456578@napali.hpl.hp.com> References: <20040120090004.48995f2a.akpm@osdl.org> <16401.57298.175645.749468@napali.hpl.hp.com> <16402.19894.686335.695215@cargo.ozlabs.ibm.com> <16405.41953.344071.456754@napali.hpl.hp.com> <16406.10170.911012.262682@cargo.ozlabs.ibm.com> <16406.36741.510353.456578@napali.hpl.hp.com> X-Mailer: VM 7.18 under Emacs 21.3.1 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1498 Lines: 31 David Mosberger writes: > Paul> Also, I don't think there is enough code there to be worth the > Paul> bother of trying to abstract the generic routine so you can > Paul> plug in different compare and move-element routines. The > Paul> whole sort routine is only 16 lines of code, after all. Why > Paul> not just have an ia64-specific version of sort_extable? > Paul> That's what I thought you would do. > > Because the Alpha needs exactly the same code. I really don't like the uglification of lib/extable.c. I think it is much better to have ~20 lines of code in each of arch/ia64/mm and arch/alpha/mm than to try to generalize lib/extable.c. Once you add all the extra definitions you need for your version, I doubt that the overall savings would be more than a dozen lines or so. The point is that with lib/extable.c as it is, you can look at one page of code, and everything you need to understand that code is there. With your change, I have to hunt around to check what the macros are doing on each arch, and flip backwards and forwards to check side effects, calling environment etc. With an ia64-specific extable.c, you should be able to look at one page of code there and see that the ia64 version is also correct. Paul. - 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/