SUPERH platform development
 help / color / mirror / Atom feed
* [PATCH] ARM: shmobile: r8a7779: fixup of_platform.h compile warning
@ 2013-02-19  8:53 Kuninori Morimoto
  2013-02-19 14:29 ` Sergei Shtylyov
  2013-03-01  7:09 ` Simon Horman
  0 siblings, 2 replies; 3+ messages in thread
From: Kuninori Morimoto @ 2013-02-19  8:53 UTC (permalink / raw)
  To: linux-sh

This patch fixup below warning

CC      arch/arm/mach-shmobile/setup-r8a7779.o
In file included from ${LINUX}/arch/arm/mach-shmobile/setup-r8a7779.c:25:0:
${LINUX}/include/linux/of_platform.h:107:13:
	warning: 'struct of_device_id' declared inside
	parameter list [enabled by default]
${LINUX}/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]
${LINUX}/include/linux/of_platform.h:107:13:
	warning: 'struct device_node' declared inside
	parameter list [enabled by default]

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
>> Simon

This is based on simon/soc5 branch

 arch/arm/mach-shmobile/setup-r8a7779.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c
index 7b4c1eb8..5911c04 100644
--- a/arch/arm/mach-shmobile/setup-r8a7779.c
+++ b/arch/arm/mach-shmobile/setup-r8a7779.c
@@ -21,6 +21,7 @@
 #include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/irq.h>
+#include <linux/of.h>
 #include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/delay.h>
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARM: shmobile: r8a7779: fixup of_platform.h compile warning
  2013-02-19  8:53 [PATCH] ARM: shmobile: r8a7779: fixup of_platform.h compile warning Kuninori Morimoto
@ 2013-02-19 14:29 ` Sergei Shtylyov
  2013-03-01  7:09 ` Simon Horman
  1 sibling, 0 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2013-02-19 14:29 UTC (permalink / raw)
  To: linux-sh

Hello.

On 19-02-2013 12:53, Kuninori Morimoto wrote:

> This patch fixup below warning

> CC      arch/arm/mach-shmobile/setup-r8a7779.o
> In file included from ${LINUX}/arch/arm/mach-shmobile/setup-r8a7779.c:25:0:
> ${LINUX}/include/linux/of_platform.h:107:13:
> 	warning: 'struct of_device_id' declared inside
> 	parameter list [enabled by default]
> ${LINUX}/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]
> ${LINUX}/include/linux/of_platform.h:107:13:
> 	warning: 'struct device_node' declared inside
> 	parameter list [enabled by default]

> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
>>> Simon

> This is based on simon/soc5 branch

>   arch/arm/mach-shmobile/setup-r8a7779.c |    1 +
>   1 file changed, 1 insertion(+)

> diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c
> index 7b4c1eb8..5911c04 100644
> --- a/arch/arm/mach-shmobile/setup-r8a7779.c
> +++ b/arch/arm/mach-shmobile/setup-r8a7779.c
> @@ -21,6 +21,7 @@
>   #include <linux/init.h>
>   #include <linux/interrupt.h>
>   #include <linux/irq.h>
> +#include <linux/of.h>
>   #include <linux/of_platform.h>
>   #include <linux/platform_device.h>
>   #include <linux/delay.h>

    I think this is only papering over the issue which lies within a header 
file <linux/oh_platform.h> itself. Exactly this file needs fixing -- which I 
tried to do in my patch posted somewhat earlier:

http://marc.info/?l=linux-sh&m\x136122828108385

WBR, Sergei


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARM: shmobile: r8a7779: fixup of_platform.h compile warning
  2013-02-19  8:53 [PATCH] ARM: shmobile: r8a7779: fixup of_platform.h compile warning Kuninori Morimoto
  2013-02-19 14:29 ` Sergei Shtylyov
@ 2013-03-01  7:09 ` Simon Horman
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2013-03-01  7:09 UTC (permalink / raw)
  To: linux-sh

On Tue, Feb 19, 2013 at 06:29:53PM +0400, Sergei Shtylyov wrote:
> Hello.
> 
> On 19-02-2013 12:53, Kuninori Morimoto wrote:
> 
> >This patch fixup below warning
> 
> >CC      arch/arm/mach-shmobile/setup-r8a7779.o
> >In file included from ${LINUX}/arch/arm/mach-shmobile/setup-r8a7779.c:25:0:
> >${LINUX}/include/linux/of_platform.h:107:13:
> >	warning: 'struct of_device_id' declared inside
> >	parameter list [enabled by default]
> >${LINUX}/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]
> >${LINUX}/include/linux/of_platform.h:107:13:
> >	warning: 'struct device_node' declared inside
> >	parameter list [enabled by default]
> 
> >Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> >---
> >>>Simon
> 
> >This is based on simon/soc5 branch
> 
> >  arch/arm/mach-shmobile/setup-r8a7779.c |    1 +
> >  1 file changed, 1 insertion(+)
> 
> >diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c
> >index 7b4c1eb8..5911c04 100644
> >--- a/arch/arm/mach-shmobile/setup-r8a7779.c
> >+++ b/arch/arm/mach-shmobile/setup-r8a7779.c
> >@@ -21,6 +21,7 @@
> >  #include <linux/init.h>
> >  #include <linux/interrupt.h>
> >  #include <linux/irq.h>
> >+#include <linux/of.h>
> >  #include <linux/of_platform.h>
> >  #include <linux/platform_device.h>
> >  #include <linux/delay.h>
> 
>    I think this is only papering over the issue which lies within a
> header file <linux/oh_platform.h> itself. Exactly this file needs
> fixing -- which I tried to do in my patch posted somewhat earlier:
> 
> http://marc.info/?l=linux-sh&m\x136122828108385

Thanks, I agree with your analysis.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-01  7:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-19  8:53 [PATCH] ARM: shmobile: r8a7779: fixup of_platform.h compile warning Kuninori Morimoto
2013-02-19 14:29 ` Sergei Shtylyov
2013-03-01  7:09 ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox