From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lorenzo Pieralisi 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> References: <1465306270-27076-1-git-send-email-lorenzo.pieralisi@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1465306270-27076-1-git-send-email-lorenzo.pieralisi-5wv7dgnIgG8@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Cc: "Rafael J. Wysocki" , Marc Zyngier , Tomasz Nowicki , Will Deacon , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-pci-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Sinan Kaya , linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Hanjun Guo , Jon Masters , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: linux-acpi@vger.kernel.org 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); -- 2.6.4 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932817AbcFGNbA (ORCPT ); Tue, 7 Jun 2016 09:31:00 -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 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); -- 2.6.4 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: 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> In-Reply-To: <1465306270-27076-1-git-send-email-lorenzo.pieralisi@arm.com> References: <1465306270-27076-1-git-send-email-lorenzo.pieralisi@arm.com> 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 Content-Type: text/plain; charset="us-ascii" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+bjorn=helgaas.com@lists.infradead.org List-ID: 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); -- 2.6.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 From: lorenzo.pieralisi@arm.com (Lorenzo Pieralisi) Date: Tue, 7 Jun 2016 14:30:56 +0100 Subject: [RFC PATCH v2 01/15] drivers: acpi: iort: fix struct pci_dev compiler warnings In-Reply-To: <1465306270-27076-1-git-send-email-lorenzo.pieralisi@arm.com> References: <1465306270-27076-1-git-send-email-lorenzo.pieralisi@arm.com> Message-ID: <1465306270-27076-2-git-send-email-lorenzo.pieralisi@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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); -- 2.6.4