From: H. Peter Anvin Date: Mon, 4 Feb 2008 15:47:58 +0000 (+0100) Subject: x86: use _ASM_EXTABLE macro in arch/x86/mm/init_32.c X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~39775^2~63 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f832ff18e886ada0ff30a1edeab082ce218d107e;p=mirror_ubuntu-focal-kernel.git x86: use _ASM_EXTABLE macro in arch/x86/mm/init_32.c Use the _ASM_EXTABLE macro from , instead of open-coding __ex_table entires in arch/x86/mm/init_32.c. Signed-off-by: H. Peter Anvin Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index f2f36f8dae52..d1bc04006d16 100644 --- a/arch/x86/mm/init_32.c +++ b/arch/x86/mm/init_32.c @@ -31,6 +31,7 @@ #include #include +#include #include #include #include @@ -718,10 +719,7 @@ static noinline int do_test_wp_bit(void) "1: movb %1, %0 \n" " xorl %2, %2 \n" "2: \n" - ".section __ex_table, \"a\"\n" - " .align 4 \n" - " .long 1b, 2b \n" - ".previous \n" + _ASM_EXTABLE(1b,2b) :"=m" (*(char *)fix_to_virt(FIX_WP_TEST)), "=q" (tmp_reg), "=r" (flag)