Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1379133 > unrolled thread

[RFC PATCH 01/11] drivers: acpi: iort: fix struct pci_dev compiler warnings

Started byLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
First post2016-04-14 19:30 +0200
Last post2016-04-14 19:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [RFC PATCH 01/11] drivers: acpi: iort: fix struct pci_dev compiler warnings Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> - 2016-04-14 19:30 +0200

#1379133 — [RFC PATCH 01/11] drivers: acpi: iort: fix struct pci_dev compiler warnings

FromLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Date2016-04-14 19:30 +0200
Subject[RFC PATCH 01/11] drivers: acpi: iort: fix struct pci_dev compiler warnings
Message-ID<rnTfA-5zn-17@gated-at.bofh.it>
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 <lorenzo.pieralisi@arm.com>
Cc: Tomasz Nowicki <tn@semihalf.com>
---
 include/linux/iort.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/iort.h b/include/linux/iort.h
index 7441941..b15fe1a 100644
--- a/include/linux/iort.h
+++ b/include/linux/iort.h
@@ -21,6 +21,7 @@
 
 #include <linux/acpi.h>
 
+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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web