x86, paravirt: Remove duplicate definition for DEF_NATIVE
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 4 Sep 2013 16:43:30 +0000 (09:43 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 4 Sep 2013 16:46:43 +0000 (09:46 -0700)
DEF_NATIVE() is defined in paravirt_types.h, remove duplicate
definition in paravirt.c

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Andi Kleen <ak@linux.kernel.org>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Link: http://lkml.kernel.org/r/CA%2B55aFxVv==DC0JdS87V%2BcPr-twN%2BTujYg5XmgHOjJOAkZ4xwQ@mail.gmail.com
arch/x86/kernel/paravirt.c

index 884aa405331353d0133a62d13f29b665d01fb0be..1b10af835c31d9e45d237f31d7061a8e58946b57 100644 (file)
@@ -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 };