[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <51CBB98D.3040304@asianux.com>
Date: Thu, 27 Jun 2013 12:03:25 +0800
From: Chen Gang <gang.chen@...anux.com>
To: Arnd Bergmann <arnd@...db.de>,
Catalin Marinas <Catalin.Marinas@....com>,
Will Deacon <will.deacon@....com>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Hirokazu Takata <takata@...ux-m32r.org>
CC: Linux-Arch <linux-arch@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
linux-m32r-ja@...linux-m32r.org, linux-m32r@...linux-m32r.org
Subject: [PATCH] include/asm-generic/pci.h: include generic "pci-dma-compat.h"
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@...anux.com>
---
include/asm-generic/pci.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/asm-generic/pci.h b/include/asm-generic/pci.h
index e80a049..64e2a15 100644
--- a/include/asm-generic/pci.h
+++ b/include/asm-generic/pci.h
@@ -6,6 +6,8 @@
#ifndef _ASM_GENERIC_PCI_H
#define _ASM_GENERIC_PCI_H
+#include <asm-generic/pci-dma-compat.h>
+
static inline struct resource *
pcibios_select_root(struct pci_dev *pdev, struct resource *res)
{
--
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists