From patchwork Tue Jun 7 13:30:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Pieralisi X-Patchwork-Id: 9161259 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A775560572 for ; Tue, 7 Jun 2016 13:32:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9791B2656B for ; Tue, 7 Jun 2016 13:32:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C5EE27248; Tue, 7 Jun 2016 13:32:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4B2432656B for ; Tue, 7 Jun 2016 13:32:56 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bAH6F-0000qc-2e; Tue, 07 Jun 2016 13:31:19 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bAH6B-0000kH-Ga for linux-arm-kernel@lists.infradead.org; Tue, 07 Jun 2016 13:31:16 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A2C7A2F; Tue, 7 Jun 2016 06:31:31 -0700 (PDT) Received: from red-moon.cambridge.arm.com (red-moon.cambridge.arm.com [10.1.203.137]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DC84D3F213; Tue, 7 Jun 2016 06:30:54 -0700 (PDT) From: Lorenzo Pieralisi To: iommu@lists.linux-foundation.org Subject: [RFC PATCH v2 01/15] drivers: acpi: iort: fix struct pci_dev compiler warnings Date: Tue, 7 Jun 2016 14:30:56 +0100 Message-Id: <1465306270-27076-2-git-send-email-lorenzo.pieralisi@arm.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1465306270-27076-1-git-send-email-lorenzo.pieralisi@arm.com> References: <1465306270-27076-1-git-send-email-lorenzo.pieralisi@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160607_063115_581722_958C7654 X-CRM114-Status: UNSURE ( 8.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Rafael J. Wysocki" , Lorenzo Pieralisi , Marc Zyngier , Tomasz Nowicki , Joerg Roedel , Will Deacon , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Sinan Kaya , linux-acpi@vger.kernel.org, Hanjun Guo , Jon Masters , Robin Murphy , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 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 When the kernel is configured with no IORT support the compilation issues the following warnings: In file included from drivers/irqchip/irq-gic-v3-its-pci-msi.c:19:0: include/linux/iort.h:28:33: warning: 'struct pci_dev' declared inside parameter list u32 iort_pci_get_msi_rid(struct pci_dev *pdev, u32 req_id); ^ include/linux/iort.h:28:33: warning: its scope is only this definition or declaration, which is probably not what you want include/linux/iort.h:29:50: warning: 'struct pci_dev' declared inside parameter list struct fwnode_handle *iort_pci_get_domain(struct pci_dev *pdev, u32 req_id); This patch fixes the warnings with a struct pci_dev forward declaration in the IORT header file. Signed-off-by: Lorenzo Pieralisi Cc: Tomasz Nowicki --- include/linux/iort.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/iort.h b/include/linux/iort.h index 490ff4d..6f2fec3 100644 --- a/include/linux/iort.h +++ b/include/linux/iort.h @@ -21,6 +21,7 @@ #include +struct pci_dev; struct fwnode_handle; int iort_register_domain_token(int trans_id, struct fwnode_handle *fw_node); void iort_deregister_domain_token(int trans_id);