From: Heiko Carstens Subject: Re: pci_ioremap_bar() breaks s390 build Date: Mon, 20 Oct 2008 20:22:50 +0200 Message-ID: <20081020182250.GB15328@osiris.boeblingen.de.ibm.com> References: <20081020174543.GA6964@osiris.boeblingen.de.ibm.com> <48FCC43D.3080305@linux.intel.com> <20081020181207.GA15328@osiris.boeblingen.de.ibm.com> <200810201114.55518.jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mtagate2.uk.ibm.com ([194.196.100.162]:51917 "EHLO mtagate2.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751213AbYJTSWx (ORCPT ); Mon, 20 Oct 2008 14:22:53 -0400 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate2.uk.ibm.com (8.13.1/8.13.1) with ESMTP id m9KIMpNl016536 for ; Mon, 20 Oct 2008 18:22:51 GMT Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id m9KIMpap4329590 for ; Mon, 20 Oct 2008 19:22:51 +0100 Received: from d06av03.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m9KIMprH011537 for ; Mon, 20 Oct 2008 19:22:51 +0100 Content-Disposition: inline In-Reply-To: <200810201114.55518.jbarnes@virtuousgeek.org> Sender: linux-next-owner@vger.kernel.org List-ID: To: Jesse Barnes Cc: Arjan van de Ven , linux-next@vger.kernel.org On Mon, Oct 20, 2008 at 11:14:55AM -0700, Jesse Barnes wrote: > On Monday, October 20, 2008 11:12 am Heiko Carstens wrote: > > On Mon, Oct 20, 2008 at 10:47:41AM -0700, Arjan van de Ven wrote: > > > Heiko Carstens wrote: > > >> Hi Arjan, > > >> > > >> your patch "PCI: introduce an pci_ioremap(pdev, barnr) function" breaks > > >> s390: > > >> > > >> CC fs/compat_ioctl.o > > >> In file included from fs/compat_ioctl.c:52: > > >> include/linux/pci.h: In function 'pci_ioremap_bar': > > >> include/linux/pci.h:1136: error: implicit declaration of function > > >> 'ioremap_nocache' include/linux/pci.h:1137: warning: return makes > > >> pointer from integer without a cast make[1]: *** [fs/compat_ioctl.o] > > >> Error 1 > > >> make: *** [fs] Error 2 > > > > > > hmm does s390 have ioremap ? > > > since that'd be the most useful solution, to add an ioremap_nocache(). > > > > s390 doesn't have ioremap. > > > > > if it doesn't have ioremap.. wtf is it doing using pci.h then ?? > > > > Several common code parts pull pci.h, not s390. > > fs/compat_ioctl.c is one, drivers/scsi/scsi_lib.c is another one. > > Hm, well it would probably be best to fix those (maybe add some #ifdef > CONFIG_PCI to them or somesuch), but that could get ugly. I'll go ahead and > apply your initial patch. Thanks! Patch was Signed-off-by: Heiko Carstens in case you need that.