From: catalin.marinas@arm.com (Catalin Marinas) Date: Thu, 27 Jun 2013 09:29:20 +0100 Subject: [PATCH] include/asm-generic/pci.h: include generic "pci-dma-compat.h" In-Reply-To: <51CBB98D.3040304@asianux.com> References: <51CBB98D.3040304@asianux.com> Message-ID: <20130627082920.GA14335@darko.cambridge.arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Jun 27, 2013 at 05:03:25AM +0100, Chen Gang wrote: > If an architecture need "generic pci.h", it also need generic "pci-dma- > compat.h", so recommend to include it in asm-generic directly. > > And now, for arm64 and m32r, may cause compiling error about it. > > The related error (with allmodconfig): > > drivers/media/usb/b2c2/flexcop-usb.c: In function ?flexcop_usb_transfer_exit?: > drivers/media/usb/b2c2/flexcop-usb.c:393:3: error: implicit declaration of function ?pci_free_consistent? [-Werror=implicit-function-declaration] > drivers/media/usb/b2c2/flexcop-usb.c: In function ?flexcop_usb_transfer_init?: > drivers/media/usb/b2c2/flexcop-usb.c:410:2: error: implicit declaration of function ?pci_alloc_consistent? [-Werror=implicit-function-declaration] > drivers/media/usb/b2c2/flexcop-usb.c:410:21: warning: assignment makes pointer from integer without a cast [enabled by default] > cc1: some warnings being treated as errors > > > Signed-off-by: Chen Gang >From the arm64 perspective: Acked-by: Catalin Marinas (but make sure it doesn't break other archs)