of: define struct device in of_platform.h if !OF_DEVICE and !OF_ADDRESS
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
@@ -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
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]Signed-off-by Jonas Gorski <[email protected]>---
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@@ -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]
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
Signed-off-by Jonas Gorski <[email protected]>---
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
Grant Likely
AppliedQuoted 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
Signed-off-by Jonas Gorski <[email protected]>---
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.