* [PATCH] ARM: arch.h: Include irq.h
@ 2011-11-09 4:02 Fabio Estevam
2011-11-09 8:45 ` Russell King - ARM Linux
0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2011-11-09 4:02 UTC (permalink / raw)
To: linux-arm-kernel
From: Fabio Estevam <fabio.estevam@freescale.com>
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
'struct pt_regs' is declared in arch/arm/include/asm/irq.h, so include this header.
Cc: Eric Miao <eric.miao@canonical.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
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..71f8bec 100644
--- a/arch/arm/include/asm/mach/arch.h
+++ b/arch/arm/include/asm/mach/arch.h
@@ -7,6 +7,7 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
+#include <asm/mach/irq.h>
#ifndef __ASSEMBLY__
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: arch.h: Include irq.h
2011-11-09 4:02 [PATCH] ARM: arch.h: Include irq.h Fabio Estevam
@ 2011-11-09 8:45 ` Russell King - ARM Linux
0 siblings, 0 replies; 2+ messages in thread
From: Russell King - ARM Linux @ 2011-11-09 8:45 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Nov 09, 2011 at 02:02:44AM -0200, Fabio Estevam wrote:
> diff --git a/arch/arm/include/asm/mach/arch.h b/arch/arm/include/asm/mach/arch.h
> index 7d19425..71f8bec 100644
> --- a/arch/arm/include/asm/mach/arch.h
> +++ b/arch/arm/include/asm/mach/arch.h
> @@ -7,6 +7,7 @@
> * it under the terms of the GNU General Public License version 2 as
> * published by the Free Software Foundation.
> */
> +#include <asm/mach/irq.h>
>
> #ifndef __ASSEMBLY__
Just add a 'struct pt_regs;' declaration along side the other structure
declarations. We don't need to increase the rats nest of includes to fix
this.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-09 8:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-09 4:02 [PATCH] ARM: arch.h: Include irq.h Fabio Estevam
2011-11-09 8:45 ` Russell King - ARM Linux
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).