From mboxrd@z Thu Jan 1 00:00:00 1970 From: kmpark@infradead.org (Kyungmin Park) Date: Fri, 7 May 2010 10:48:25 +0900 Subject: [PATCH] ARM: Declare __copy_to_user_std as a function using ENDPROC In-Reply-To: References: <20100506141238.4396.8055.stgit@e102109-lin.cambridge.arm.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Tested-by: Kyungmin Park On Fri, May 7, 2010 at 2:35 AM, Nicolas Pitre wrote: > On Thu, 6 May 2010, Catalin Marinas wrote: > >> This is needed for Thumb-2 kernel builds, otherwise the compiler >> generates branches into ARM mode to this function. >> >> Reported-by: Kyungmin Park >> Signed-off-by: Catalin Marinas > > You need to do the same with __clear_user_std as well. ?With that change > added: > > Acked-by: Nicolas Pitre > > > > >> --- >> ?arch/arm/lib/copy_to_user.S | ? ?1 + >> ?1 files changed, 1 insertions(+), 0 deletions(-) >> >> diff --git a/arch/arm/lib/copy_to_user.S b/arch/arm/lib/copy_to_user.S >> index 1a71e15..5941fbc 100644 >> --- a/arch/arm/lib/copy_to_user.S >> +++ b/arch/arm/lib/copy_to_user.S >> @@ -93,6 +93,7 @@ WEAK(__copy_to_user) >> ?#include "copy_template.S" >> >> ?ENDPROC(__copy_to_user) >> +ENDPROC(__copy_to_user_std) >> >> ? ? ? .section .fixup,"ax" >> ? ? ? .align 0 >> >> >> _______________________________________________ >> linux-arm-kernel mailing list >> linux-arm-kernel at lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel >> >