Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759497AbXEYGDD (ORCPT ); Fri, 25 May 2007 02:03:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753591AbXEYGCy (ORCPT ); Fri, 25 May 2007 02:02:54 -0400 Received: from mtagate2.uk.ibm.com ([195.212.29.135]:21833 "EHLO mtagate2.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752974AbXEYGCx (ORCPT ); Fri, 25 May 2007 02:02:53 -0400 Date: Fri, 25 May 2007 08:02:51 +0200 From: Cornelia Huck To: "Williams, Dan J" Cc: , "Andrew Morton" , , "NeilBrown" , "linux-s390" Subject: Re: 2.6.22-rc1-mm1 - s390 vs. md Message-ID: <20070525080251.1bca37ee@gondolin.boeblingen.de.ibm.com> In-Reply-To: <0C7297FA1D2D244A9C7F6959C0BF1E5201E703A5@azsmsx413.amr.corp.intel.com> References: <20070523104639.6bc0650e@gondolin.boeblingen.de.ibm.com> <0C7297FA1D2D244A9C7F6959C0BF1E5201E703A5@azsmsx413.amr.corp.intel.com> Organization: IBM Deutschland Entwicklung GmbH X-Mailer: Claws Mail 2.9.2 (GTK+ 2.10.12; i486-pc-linux-gnu) X-Legal: IBM Deutschland Entwicklung GmbH Vorsitzender des Aufsichtsrats: Johann Weihen =?ISO-8859-15?Q?Gesch=E4ftsf=FChrung:?= Herbert Kircher Sitz der Gesellschaft: =?ISO-8859-15?Q?B=F6blingen?= Registergericht: Amtsgericht Stuttgart, HRB 243294 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 941 Lines: 26 On Thu, 24 May 2007 15:11:08 -0700, "Williams, Dan J" wrote: > --- a/async_tx/async_memcpy.c > +++ b/async_tx/async_memcpy.c > @@ -56,6 +56,7 @@ async_memcpy(struct page *dest, struct page *src, > unsigned int dest_offset, > int_en) : NULL; > > if (tx) { /* run the memcpy asynchronously */ > + #ifdef CONFIG_HAS_DMA > dma_addr_t dma_addr; > enum dma_data_direction dir; Can you factor out the async stuff into a function so you can use the #ifdefs to define different functions rather than put them in the middle of a complex function? (Maybe you should rather use #ifdef CONFIG_DMA_ENGINE, since the async part is not needed for !DMA_ENGINE either.) - 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/