Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932477AbWAJUFK (ORCPT ); Tue, 10 Jan 2006 15:05:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932544AbWAJUFK (ORCPT ); Tue, 10 Jan 2006 15:05:10 -0500 Received: from pasmtp.tele.dk ([193.162.159.95]:21262 "EHLO pasmtp.tele.dk") by vger.kernel.org with ESMTP id S932477AbWAJUFI (ORCPT ); Tue, 10 Jan 2006 15:05:08 -0500 Date: Tue, 10 Jan 2006 21:04:47 +0100 From: Sam Ravnborg To: "Bryan O'Sullivan" Cc: Roland Dreier , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1 of 3] Introduce __raw_memcpy_toio32 Message-ID: <20060110200447.GC14721@mars.ravnborg.org> References: <20060110011844.7a4a1f90.akpm@osdl.org> <1136909276.32183.28.camel@serpentine.pathscale.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1136909276.32183.28.camel@serpentine.pathscale.com> User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1059 Lines: 27 On Tue, Jan 10, 2006 at 08:07:56AM -0800, Bryan O'Sullivan wrote: > The only problem with this is that it's an unusual approach, so I don't > have any obvious examples to copy. The closest I can think of is > arch/x86_64/kernel/Makefile, which pulls in routines from the i386 tree > like this: > > bootflag-y += ../../i386/kernel/bootflag.o > > So say arch/ia64/lib/Makefile, for example, could have a line like this: > > obj-y += ../../../lib/raw_memcpy_toio32.o > > Sam, do you think this is safe to do in generalwith respect to kbuild? It is safe if you pull in .o files from a directory that you otherwise does not visit. But pulling in .o files that can/will be build by another Makkefile is doomed. But seeing other mails in this thread the final solution does not use this anyway. Sam - 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/