* [PATCH] ARM: mm/alignment.c: Fix build error
@ 2011-10-14 18:11 Fabio Estevam
2011-10-14 18:26 ` Nicolas Pitre
0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2011-10-14 18:11 UTC (permalink / raw)
To: linux-arm-kernel
If CONFIG_PROC_FS is not set the following error is generated because
'cpu_is_v6_unaligned' definition is protected by CONFIG_PROC_FS:
CC arch/arm/mm/alignment.o
arch/arm/mm/alignment.c: In function 'alignment_init':
arch/arm/mm/alignment.c:964: error: implicit declaration of function 'cpu_is_v6_unaligned'
arch/arm/mm/alignment.c:968: error: implicit declaration of function 'safe_usermode'
make[1]: *** [arch/arm/mm/alignment.o] Error 1
make: *** [arch/arm/mm] Error 2
This build error was triggered by 'make randconfig'.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
arch/arm/mm/alignment.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mm/alignment.c b/arch/arm/mm/alignment.c
index cfbcf8b..38b270a 100644
--- a/arch/arm/mm/alignment.c
+++ b/arch/arm/mm/alignment.c
@@ -959,7 +959,6 @@ static int __init alignment_init(void)
&alignment_proc_fops);
if (!res)
return -ENOMEM;
-#endif
if (cpu_is_v6_unaligned()) {
cr_alignment &= ~CR_A;
@@ -968,6 +967,7 @@ static int __init alignment_init(void)
ai_usermode = safe_usermode(ai_usermode, false);
}
+#endif
hook_fault_code(1, do_alignment, SIGBUS, BUS_ADRALN,
"alignment exception");
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: mm/alignment.c: Fix build error
2011-10-14 18:11 [PATCH] ARM: mm/alignment.c: Fix build error Fabio Estevam
@ 2011-10-14 18:26 ` Nicolas Pitre
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Pitre @ 2011-10-14 18:26 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, 14 Oct 2011, Fabio Estevam wrote:
> If CONFIG_PROC_FS is not set the following error is generated because
> 'cpu_is_v6_unaligned' definition is protected by CONFIG_PROC_FS:
>
> CC arch/arm/mm/alignment.o
> arch/arm/mm/alignment.c: In function 'alignment_init':
> arch/arm/mm/alignment.c:964: error: implicit declaration of function 'cpu_is_v6_unaligned'
> arch/arm/mm/alignment.c:968: error: implicit declaration of function 'safe_usermode'
> make[1]: *** [arch/arm/mm/alignment.o] Error 1
> make: *** [arch/arm/mm] Error 2
>
> This build error was triggered by 'make randconfig'.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
The same patch from Arnd is already queued by RMK.
Nicolas
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-14 18:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-14 18:11 [PATCH] ARM: mm/alignment.c: Fix build error Fabio Estevam
2011-10-14 18:26 ` Nicolas Pitre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox