From patchwork Thu Jun 27 04:03:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Chen Gang X-Patchwork-Id: 2789711 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B25E3C0AB1 for ; Thu, 27 Jun 2013 04:05:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8B49F201DA for ; Thu, 27 Jun 2013 04:04:59 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 71F92201C2 for ; Thu, 27 Jun 2013 04:04:58 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Us3Ru-0008BB-AB; Thu, 27 Jun 2013 04:04:46 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Us3Rr-0005GQ-PD; Thu, 27 Jun 2013 04:04:43 +0000 Received: from intranet.asianux.com ([58.214.24.6]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Us3Ro-0005Ff-03 for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2013 04:04:40 +0000 Received: by intranet.asianux.com (Postfix, from userid 103) id 560A918402D4; Thu, 27 Jun 2013 12:04:17 +0800 (CST) X-Spam-Score: -100.8 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from [10.1.0.143] (unknown [219.143.36.82]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by intranet.asianux.com (Postfix) with ESMTP id CA38A184024F; Thu, 27 Jun 2013 12:04:16 +0800 (CST) Message-ID: <51CBB98D.3040304@asianux.com> Date: Thu, 27 Jun 2013 12:03:25 +0800 From: Chen Gang User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Arnd Bergmann , Catalin Marinas , Will Deacon , Geert Uytterhoeven , Hirokazu Takata Subject: [PATCH] include/asm-generic/pci.h: include generic "pci-dma-compat.h" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130627_000440_507635_3A55487B X-CRM114-Status: GOOD ( 11.46 ) X-Spam-Score: -3.2 (---) Cc: Linux-Arch , linux-m32r-ja@ml.linux-m32r.org, linux-m32r@ml.linux-m32r.org, "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Catalin Marinas --- 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 + static inline struct resource * pcibios_select_root(struct pci_dev *pdev, struct resource *res) {