Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758961AbXFAHKP (ORCPT ); Fri, 1 Jun 2007 03:10:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756601AbXFAHKA (ORCPT ); Fri, 1 Jun 2007 03:10:00 -0400 Received: from mtagate4.uk.ibm.com ([195.212.29.137]:1863 "EHLO mtagate4.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756777AbXFAHJ7 (ORCPT ); Fri, 1 Jun 2007 03:09:59 -0400 Date: Fri, 1 Jun 2007 09:09:55 +0200 From: Cornelia Huck To: Andrew Morton Cc: Christoph Hellwig , Jeff Garzik , Matthew Wilcox , linux-kernel@vger.kernel.org, SCSI development list , James Bottomley , Dan Williams Subject: Re: 2.6.22-rc3-mm1 Message-ID: <20070601090955.272806d8@gondolin.boeblingen.de.ibm.com> In-Reply-To: <20070531151005.5c5db8af.akpm@linux-foundation.org> References: <20070530235823.793f00d9.akpm@linux-foundation.org> <20070531140922.2e55aefb@gondolin.boeblingen.de.ibm.com> <20070531121557.GQ23968@parisc-linux.org> <20070531142048.05edf133@gondolin.boeblingen.de.ibm.com> <465EC101.7010105@garzik.org> <20070531151338.GA759@infradead.org> <20070531151005.5c5db8af.akpm@linux-foundation.org> 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: 1594 Lines: 36 On Thu, 31 May 2007 15:10:05 -0700, Andrew Morton wrote: > Cornelia, afaict your patch has no actual delendency upon Dan's > dma-mapping-prevent-dma-dependent-code-from-linking-on.patch, correct? If > so, I can merge it via James and then merge Dan's patch once James has > merged. AFAICS there's no dependency in that direction. > diff -puN include/scsi/scsi_cmnd.h~scsi-dont-build-scsi_dma_mapunmap-for-has_dma include/scsi/scsi_cmnd.h > --- a/include/scsi/scsi_cmnd.h~scsi-dont-build-scsi_dma_mapunmap-for-has_dma > +++ a/include/scsi/scsi_cmnd.h > @@ -135,8 +135,10 @@ extern void scsi_kunmap_atomic_sg(void * > extern struct scatterlist *scsi_alloc_sgtable(struct scsi_cmnd *, gfp_t); > extern void scsi_free_sgtable(struct scatterlist *, int); > > +#ifdef CONFIG_SCSI_DMA > extern int scsi_dma_map(struct scsi_cmnd *cmd); > extern void scsi_dma_unmap(struct scsi_cmnd *cmd); > +#endif > > #define scsi_sg_count(cmd) ((cmd)->use_sg) > #define scsi_sglist(cmd) ((struct scatterlist *)(cmd)->request_buffer) > > We don't really need the ifdefs here. If someone incorrectly calls these > functions then they'll get a link-time failure anyway. The downside of > removing these ifdefs is that they won't get a compile-time warning, but I > tend to think that this small cost is worth it. OK, fine with me. - 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/