Skip to contentSkip to conversation

of: define struct device in of_platform.h if !OF_DEVICE and !OF_ADDRESS

PATCH Applied Jonas Gorski 3 participants 4 messages Dec 15, 2012 – Dec 19, 2012 2 messages not in the archive Device tree

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 of: define struct device in of_platform.h if !OF_DEVICE and !OF_ADDRESS

Fixes the following warning:

include/linux/of_platform.h:106:13: warning: 'struct device' declared inside parameter list [enabled by default] include/linux/of_platform.h:106:13: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]

---
 include/linux/of_platform.h |    1 +
 1 file changed, 1 insertion(+)
include/linux/of_platform.h +1 -0
index b47d204..3863a4d 100644
@@ -100,6 +100,7 @@ extern int of_platform_populate(struct device_node *root,
 
 #if !defined(CONFIG_OF_ADDRESS)
 struct of_dev_auxdata;
+struct device;
 static inline int of_platform_populate(struct device_node *root,
 					const struct of_device_id *matches,
 					const struct of_dev_auxdata *lookup,
Signature · 1 line
1.7.10.4

A message that is not in the archive (sent off-list or not yet received): 1355578062-21876-1-git-send-email-jogo-p3rKhJxN3npAfugRpC6u6w@public.gmane.org

#2 lore raw
Quoted 7 lines · Jonas Gorski

Fixes the following warning:

include/linux/of_platform.h:106:13: warning: 'struct device' declared inside parameter list [enabled by default] include/linux/of_platform.h:106:13: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]

---

It seems like this never made it to the list, so hopefully this reply will.

Rob

Quoted 16 lines
 include/linux/of_platform.h |    1 +
 1 file changed, 1 insertion(+)
include/linux/of_platform.h +1 -0
index b47d204..3863a4d 100644
@@ -100,6 +100,7 @@ extern int of_platform_populate(struct device_node *root,
 
 #if !defined(CONFIG_OF_ADDRESS)
 struct of_dev_auxdata;
+struct device;
 static inline int of_platform_populate(struct device_node *root,
 					const struct of_device_id *matches,
 					const struct of_dev_auxdata *lookup,

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 6 lines · Rob Herring
Quoted 5 lines · Jonas Gorski

Fixes the following warning:

include/linux/of_platform.h:106:13: warning: 'struct device' declared inside parameter list [enabled by default] include/linux/of_platform.h:106:13: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]

Quoted 6 lines
Quoted 2 lines

---

It seems like this never made it to the list, so hopefully this reply will.

Rob

It's in the archive, and I received it from the list (on a different email account), so it whatever made it not there must be a local issue:

<https://lists.ozlabs.org/pipermail/devicetree-discuss/2012-December/024480.html>

Regards
Jonas

Applied
#5 lore raw
In reply to a message not in the archive
Quoted 6 lines · Rob Herring
Quoted 5 lines · Jonas Gorski

Fixes the following warning:

include/linux/of_platform.h:106:13: warning: 'struct device' declared inside parameter list [enabled by default] include/linux/of_platform.h:106:13: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]

Quoted 6 lines
Quoted 2 lines

---

It seems like this never made it to the list, so hopefully this reply will.

Rob

Applied, thanks.

Rob, I've added a signed-off-by tag for you since I *assume* you sign off on receiving this patch under appropriate terms. I will expect to hear from you if this is not the case. :-p

g.