From: H. Peter Anvin Date: Wed, 4 Sep 2013 16:43:30 +0000 (-0700) Subject: x86, paravirt: Remove duplicate definition for DEF_NATIVE X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f2a7b303d6e0bfb75b611b560af218608e50011f;p=openwrt%2Fstaging%2Fblogic.git x86, paravirt: Remove duplicate definition for DEF_NATIVE DEF_NATIVE() is defined in paravirt_types.h, remove duplicate definition in paravirt.c Reported-by: Linus Torvalds Signed-off-by: H. Peter Anvin Cc: Andi Kleen Cc: Konrad Rzeszutek Wilk Link: http://lkml.kernel.org/r/CA%2B55aFxVv==DC0JdS87V%2BcPr-twN%2BTujYg5XmgHOjJOAkZ4xwQ@mail.gmail.com --- diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c index 884aa4053313..1b10af835c31 100644 --- a/arch/x86/kernel/paravirt.c +++ b/arch/x86/kernel/paravirt.c @@ -62,11 +62,6 @@ void __init default_banner(void) pv_info.name); } -/* Simple instruction patching code. */ -#define DEF_NATIVE(ops, name, code) \ - extern const char start_##ops##_##name[], end_##ops##_##name[]; \ - asm("start_" #ops "_" #name ": " code "; end_" #ops "_" #name ":") - /* Undefined instruction for dealing with missing ops pointers. */ static const unsigned char ud2a[] = { 0x0f, 0x0b };