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: 9161359 X-Patchwork-Delegate: bhelgaas@google.com 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 2E79E60572 for ; Tue, 7 Jun 2016 13:37:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1EF372656B for ; Tue, 7 Jun 2016 13:37:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1390827248; Tue, 7 Jun 2016 13:37:57 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBD622656B for ; Tue, 7 Jun 2016 13:37:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932787AbcFGNa7 (ORCPT ); Tue, 7 Jun 2016 09:30:59 -0400 Received: from foss.arm.com ([217.140.101.70]:44391 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932456AbcFGNa5 (ORCPT ); Tue, 7 Jun 2016 09:30:57 -0400 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 Cc: Lorenzo Pieralisi , Tomasz Nowicki , Will Deacon , Marc Zyngier , Robin Murphy , Joerg Roedel , "Rafael J. Wysocki" , Hanjun Guo , Jon Masters , Sinan Kaya , linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.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> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.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);