From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: [PATCH-RFC 06/10] mips: switch to GENERIC_PCI_IOMAP Date: Mon, 30 Jan 2012 00:45:07 +0200 Message-ID: <20120129223339.GA22666@redhat.com> References: <66457f7750d7d14229fcf8d0b011aba63185a75d.1322163031.git.mst@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Cc: Nicolas Pitre , linux-mips@linux-mips.org, linux-m68k@vger.kernel.org, linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, Benjamin Herrenschmidt , linux@openrisc.net, linux-pci@vger.kernel.org, Jesse Barnes , Kumar Gala , Chen Liqin , Paul Mackerras , "H. Peter Anvin" , sparclinux@vger.kernel.org, Guan Xuetao , Lennox Wu , Jesper Nilsson , Russell King , linux-hexagon@vger.kernel.org, Helge Deller , x86@kernel.org, "James E.J. Bottomley" , Ingo Molnar , Geert Uytterhoeven , linux-arch@vger.kernel.org, Arend van Spriel , To: Kevin Cernekee Return-path: In-Reply-To: List-Id: OpenRISC Linux List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-bounces@lists.openrisc.net On Sat, Jan 28, 2012 at 02:38:10PM -0800, Kevin Cernekee wrote: > On Thu, Nov 24, 2011 at 12:18 PM, Michael S. Tsirkin wro= te: > > mips copied pci_iomap from generic code, probably to avoid > > pulling the rest of iomap.c in. =A0Since that's in > > a separate file now, we can reuse the common implementation. > = > [snip] > = > > - =A0 =A0 =A0 if (flags & IORESOURCE_IO) > > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 return ioport_map_pci(dev, start, len); > = > While investigating a new warning on the 3.3-rc1 MIPS build (unused > static function ioport_map_pci()), I noticed that this patch has shown > up in Linus' tree as commit eab90291d35438bcebf7c3dc85be66d0f24e3002. > = > I am not completely clear on the implications it has on mapping PCI I/O r= egions: Yes, my bad, I missed the difference between ioport_map_pci and ioport_map for both MIPS and SH. I'll post a patch to fix this, which is probably preferable to reintroducing the code duplication where it might trip us up again. -- = MST