No, I plan to leave it as is and not rely on device.h by chanceWill you drop 'struct device_node' declaration then or should INevermind. Found it. I'll apply it.Yes, I can, but I don't seem to have the original patch. Can you send itFix the following compilation warnings (in Simon Horman'sReviewed-by: Simon Horman <horms+renesas@xxxxxxxxxxxx>
renesas.git repo):
In file included from arch/arm/mach-shmobile/setup-r8a7779.c:24:0:
include/linux/of_platform.h:107:13: warning: âstruct of_device_idâ
declared
inside parameter list [enabled by default]
include/linux/of_platform.h:107: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:107:13: warning: âstruct device_nodeâ
declared
inside parameter list [enabled by default]
<linux/of_platform.h> only #include's headers with definitions of
the above
mentioned structures if CONFIG_OF_DEVICE=y but uses them even if
not. One
solution is to move some #include's out of #ifdef CONFIG_OF_DEVICE
and use
incomplete declarations for the rest of the structures where the
#ifdef move
doesn't help...
Reported-by: Vladimir Barinov <vladimir.barinov@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@xxxxxxxxxxxxxxxxxx>
Grant, could you consider taking this patch?
again.
resend? In fact, I think I should better resend it with the changelog
somewhat edited.
declaring device_node.
Rob