lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Wed, 28 Aug 2013 18:28:28 -0700
From:	Anton Vorontsov <anton@...msg.org>
To:	Grant Likely <grant.likely@...aro.org>
Cc:	Rob Herring <rob.herring@...xeda.com>, devicetree@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH] of/irq: Provide struct device_node forward-declaration for
 !OF case

The patch fixes the following warnings:

  CC      drivers/power/bq24190_charger.o
  In file included from drivers/power/bq24190_charger.c:14:0:
  include/linux/of_irq.h:82:7: warning: ‘struct device_node’ declared
  inside parameter list [enabled by default]
  include/linux/of_irq.h:82:7: warning: its scope is only this definition
  or declaration, which is probably not what you want [enabled by default]
  include/linux/of_irq.h:87:118: warning: ‘struct device_node’ declared
  inside parameter list [enabled by default]

Signed-off-by: Anton Vorontsov <anton@...msg.org>
---
 include/linux/of_irq.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/linux/of_irq.h b/include/linux/of_irq.h
index 535cecf..988d5c9 100644
--- a/include/linux/of_irq.h
+++ b/include/linux/of_irq.h
@@ -78,6 +78,9 @@ extern void of_irq_init(const struct of_device_id *matches);
 #endif /* CONFIG_OF_IRQ */
 
 #else /* !CONFIG_OF */
+
+struct device_node;
+
 static inline unsigned int irq_of_parse_and_map(struct device_node *dev,
 						int index)
 {
-- 
1.8.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ