From: Ian Campbell Subject: Re: [PATCH v4 10/25] arm: bit manipulation, copy and division libraries Date: Tue, 10 Jan 2012 11:29:56 +0000 Message-ID: <1326194997.17210.128.camel@zakaz.uk.xensource.com> References: <1326132001-21251-10-git-send-email-stefano.stabellini@eu.citrix.com> <1326184323.29084.80.camel@dagon.hellion.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: "xen-devel@lists.xensource.com" , "Tim Deegan (3P)" , "JBeulich@suse.com" List-Id: xen-devel@lists.xenproject.org On Tue, 2012-01-10 at 11:22 +0000, Stefano Stabellini wrote: > On Tue, 10 Jan 2012, Ian Campbell wrote: > > On Mon, 2012-01-09 at 17:59 +0000, stefano.stabellini@eu.citrix.com > > wrote: > > > From: Stefano Stabellini > > > > > > Bit manipulation, division and memcpy & friends implementations for the > > > ARM architecture, shamelessly taken from Linux. > > > > When I initially imported these I did so with the minimal changes > > possible to integrate the in the Xen tree so as to aid future merges of > > this code from Linux. > > > > This meant there was quite a lot of ifdef'd code (in particular for > > previous ARM architectures via __LINUX_ARM_ARCH__) but I think that is a > > price worth paying to keep these files somewhat in sync. I used a pretty > > ugly "#if 1 /* __LINUX_ARM_ARCH__ >= 5 */" construct to minimise changes > > but perhaps it would be better to simply define __LINUX_ARM_ARCH__ > > appropriately within the lib subdirectory? > > > > I am not a great fan of manually sync'ed source files, however I > understand your concerns. At that point we might have to move > __aeabi_uldivmod and __aeabi_ldivmod to a different location, if we > really want to keep these files identical. Lets just agree that necessary changes are ok. I don't think they need to be identical, just not unnecessarily changed since that makes resyncing harder for no gain. Ian.