Re: [PATCH] include/asm-generic/pci.h: include generic"pci-dma-compat.h"
From: Catalin Marinas
Date: Thu Jun 27 2013 - 04:30:34 EST
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 <gang.chen@xxxxxxxxxxx>
>From the arm64 perspective:
Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>
(but make sure it doesn't break other archs)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/