* [PATCH v2] ARM: arch.h: Declare 'pt_regs' locally
@ 2011-11-09 12:10 Fabio Estevam
2011-11-09 12:19 ` Eric Miao
2011-11-09 17:56 ` Russell King - ARM Linux
0 siblings, 2 replies; 4+ messages in thread
From: Fabio Estevam @ 2011-11-09 12:10 UTC (permalink / raw)
To: linux-arm-kernel
Fix the following warning when building imx_v4_v5_defconfig target:
CC arch/arm/mach-imx/mach-imx27ipcam.o
In file included from arch/arm/mach-imx/mach-imx27ipcam.c:18:
/home/fabio/linus/linux-2.6/arch/arm/include/asm/mach/arch.h:47: warning: 'struct pt_regs' declared inside parameter list
/home/fabio/linus/linux-2.6/arch/arm/include/asm/mach/arch.h:47: warning: its scope is only this definition or declaration, which is probably not what you want
arch/arm/mach-imx/mach-imx27ipcam.c:78: warning: initialization from incompatible pointer type
Declare 'struct pt_regs' locally.
Cc: Eric Miao <eric.miao@canonical.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
Changes since v1:
- Define struct pt_regs locally instead of adding <asm/mach/irq.h>
- Change the Subject accordingly
arch/arm/include/asm/mach/arch.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/arm/include/asm/mach/arch.h b/arch/arm/include/asm/mach/arch.h
index 7d19425..2b0efc3 100644
--- a/arch/arm/include/asm/mach/arch.h
+++ b/arch/arm/include/asm/mach/arch.h
@@ -13,6 +13,7 @@
struct tag;
struct meminfo;
struct sys_timer;
+struct pt_regs;
struct machine_desc {
unsigned int nr; /* architecture number */
--
1.7.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2] ARM: arch.h: Declare 'pt_regs' locally
2011-11-09 12:10 [PATCH v2] ARM: arch.h: Declare 'pt_regs' locally Fabio Estevam
@ 2011-11-09 12:19 ` Eric Miao
2011-11-09 17:56 ` Russell King - ARM Linux
1 sibling, 0 replies; 4+ messages in thread
From: Eric Miao @ 2011-11-09 12:19 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Nov 9, 2011 at 8:10 PM, Fabio Estevam
<fabio.estevam@freescale.com> wrote:
> Fix the following warning when building imx_v4_v5_defconfig target:
>
> ?CC ? ? ?arch/arm/mach-imx/mach-imx27ipcam.o
> In file included from arch/arm/mach-imx/mach-imx27ipcam.c:18:
> /home/fabio/linus/linux-2.6/arch/arm/include/asm/mach/arch.h:47: warning: 'struct pt_regs' declared inside parameter list
> /home/fabio/linus/linux-2.6/arch/arm/include/asm/mach/arch.h:47: warning: its scope is only this definition or declaration, which is probably not what you want
> arch/arm/mach-imx/mach-imx27ipcam.c:78: warning: initialization from incompatible pointer type
>
> Declare 'struct pt_regs' locally.
>
> Cc: Eric Miao <eric.miao@canonical.com>
Acked
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> Changes since v1:
> - Define struct pt_regs locally instead of adding <asm/mach/irq.h>
> - Change the Subject accordingly
>
> ?arch/arm/include/asm/mach/arch.h | ? ?1 +
> ?1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/include/asm/mach/arch.h b/arch/arm/include/asm/mach/arch.h
> index 7d19425..2b0efc3 100644
> --- a/arch/arm/include/asm/mach/arch.h
> +++ b/arch/arm/include/asm/mach/arch.h
> @@ -13,6 +13,7 @@
> ?struct tag;
> ?struct meminfo;
> ?struct sys_timer;
> +struct pt_regs;
>
> ?struct machine_desc {
> ? ? ? ?unsigned int ? ? ? ? ? ?nr; ? ? ? ? ? ? /* architecture number ?*/
> --
> 1.7.1
>
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2] ARM: arch.h: Declare 'pt_regs' locally
2011-11-09 12:10 [PATCH v2] ARM: arch.h: Declare 'pt_regs' locally Fabio Estevam
2011-11-09 12:19 ` Eric Miao
@ 2011-11-09 17:56 ` Russell King - ARM Linux
2011-11-09 18:16 ` Fabio Estevam
1 sibling, 1 reply; 4+ messages in thread
From: Russell King - ARM Linux @ 2011-11-09 17:56 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Nov 09, 2011 at 10:10:48AM -0200, Fabio Estevam wrote:
> Fix the following warning when building imx_v4_v5_defconfig target:
>
> CC arch/arm/mach-imx/mach-imx27ipcam.o
> In file included from arch/arm/mach-imx/mach-imx27ipcam.c:18:
> /home/fabio/linus/linux-2.6/arch/arm/include/asm/mach/arch.h:47: warning: 'struct pt_regs' declared inside parameter list
> /home/fabio/linus/linux-2.6/arch/arm/include/asm/mach/arch.h:47: warning: its scope is only this definition or declaration, which is probably not what you want
> arch/arm/mach-imx/mach-imx27ipcam.c:78: warning: initialization from incompatible pointer type
>
> Declare 'struct pt_regs' locally.
>
> Cc: Eric Miao <eric.miao@canonical.com>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Yup. Can go to the patch system, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2] ARM: arch.h: Declare 'pt_regs' locally
2011-11-09 17:56 ` Russell King - ARM Linux
@ 2011-11-09 18:16 ` Fabio Estevam
0 siblings, 0 replies; 4+ messages in thread
From: Fabio Estevam @ 2011-11-09 18:16 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Nov 9, 2011 at 3:56 PM, Russell King - ARM Linux
<linux@arm.linux.org.uk> wrote:
> On Wed, Nov 09, 2011 at 10:10:48AM -0200, Fabio Estevam wrote:
>> Fix the following warning when building imx_v4_v5_defconfig target:
>>
>> ? CC ? ? ?arch/arm/mach-imx/mach-imx27ipcam.o
>> In file included from arch/arm/mach-imx/mach-imx27ipcam.c:18:
>> /home/fabio/linus/linux-2.6/arch/arm/include/asm/mach/arch.h:47: warning: 'struct pt_regs' declared inside parameter list
>> /home/fabio/linus/linux-2.6/arch/arm/include/asm/mach/arch.h:47: warning: its scope is only this definition or declaration, which is probably not what you want
>> arch/arm/mach-imx/mach-imx27ipcam.c:78: warning: initialization from incompatible pointer type
>>
>> Declare 'struct pt_regs' locally.
>>
>> Cc: Eric Miao <eric.miao@canonical.com>
>> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
>
> Yup. ?Can go to the patch system, thanks.
Done as 7155/1.
Regards,
Fabio Estevam
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-11-09 18:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-09 12:10 [PATCH v2] ARM: arch.h: Declare 'pt_regs' locally Fabio Estevam
2011-11-09 12:19 ` Eric Miao
2011-11-09 17:56 ` Russell King - ARM Linux
2011-11-09 18:16 ` Fabio Estevam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox