* [PATCH] ARM: mm: Remove do_sect_fault from LPAE code
@ 2013-06-24 9:48 Steve Capper
2013-06-24 20:58 ` Arnd Bergmann
0 siblings, 1 reply; 3+ messages in thread
From: Steve Capper @ 2013-06-24 9:48 UTC (permalink / raw)
To: linux-arm-kernel
For LPAE, do_sect_fault used to be invoked as the second level access
flag handler. When transparent huge pages were introduced for LPAE,
do_page_fault was used instead.
Unfortunately, do_sect_fault remains defined but not used for LPAE code
resulting in a compile warning.
This patch surrounds do_sect_fault with #ifndef CONFIG_ARM_LPAE to fix
this warning.
Signed-off-by: Steve Capper <steve.capper@linaro.org>
---
arch/arm/mm/fault.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c
index 5dbf13f..c97f794 100644
--- a/arch/arm/mm/fault.c
+++ b/arch/arm/mm/fault.c
@@ -491,12 +491,14 @@ do_translation_fault(unsigned long addr, unsigned int fsr,
* Some section permission faults need to be handled gracefully.
* They can happen due to a __{get,put}_user during an oops.
*/
+#ifndef CONFIG_ARM_LPAE
static int
do_sect_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
{
do_bad_area(addr, fsr, regs);
return 0;
}
+#endif /* CONFIG_ARM_LPAE */
/*
* This abort handler always returns "fault".
--
1.8.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] ARM: mm: Remove do_sect_fault from LPAE code
2013-06-24 9:48 [PATCH] ARM: mm: Remove do_sect_fault from LPAE code Steve Capper
@ 2013-06-24 20:58 ` Arnd Bergmann
2013-06-25 7:47 ` Steve Capper
0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2013-06-24 20:58 UTC (permalink / raw)
To: linux-arm-kernel
On Monday 24 June 2013, Steve Capper wrote:
> For LPAE, do_sect_fault used to be invoked as the second level access
> flag handler. When transparent huge pages were introduced for LPAE,
> do_page_fault was used instead.
>
> Unfortunately, do_sect_fault remains defined but not used for LPAE code
> resulting in a compile warning.
>
> This patch surrounds do_sect_fault with #ifndef CONFIG_ARM_LPAE to fix
> this warning.
>
> Signed-off-by: Steve Capper <steve.capper@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] ARM: mm: Remove do_sect_fault from LPAE code
2013-06-24 20:58 ` Arnd Bergmann
@ 2013-06-25 7:47 ` Steve Capper
0 siblings, 0 replies; 3+ messages in thread
From: Steve Capper @ 2013-06-25 7:47 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Jun 24, 2013 at 10:58:29PM +0200, Arnd Bergmann wrote:
> On Monday 24 June 2013, Steve Capper wrote:
> > For LPAE, do_sect_fault used to be invoked as the second level access
> > flag handler. When transparent huge pages were introduced for LPAE,
> > do_page_fault was used instead.
> >
> > Unfortunately, do_sect_fault remains defined but not used for LPAE code
> > resulting in a compile warning.
> >
> > This patch surrounds do_sect_fault with #ifndef CONFIG_ARM_LPAE to fix
> > this warning.
> >
> > Signed-off-by: Steve Capper <steve.capper@linaro.org>
>
> Acked-by: Arnd Bergmann <arnd@arndb.de>
Thanks Arnd,
This is in Russell's system as 7775/1.
Cheers,
--
Steve
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-25 7:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-24 9:48 [PATCH] ARM: mm: Remove do_sect_fault from LPAE code Steve Capper
2013-06-24 20:58 ` Arnd Bergmann
2013-06-25 7:47 ` Steve Capper
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).