diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2013-09-04 18:43:30 +0200 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2013-09-04 18:46:43 +0200 |
commit | f2a7b303d6e0bfb75b611b560af218608e50011f (patch) | |
tree | 86ea6572bea5cd18d1ba98d32df0089a5d4305aa /arch/x86/kernel/paravirt.c | |
parent | x86/asmlinkage: Fix warning in xen asmlinkage change (diff) | |
download | linux-f2a7b303d6e0bfb75b611b560af218608e50011f.tar.xz linux-f2a7b303d6e0bfb75b611b560af218608e50011f.zip |
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 <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
Diffstat (limited to 'arch/x86/kernel/paravirt.c')
-rw-r--r-- | arch/x86/kernel/paravirt.c | 5 |
1 files changed, 0 insertions, 5 deletions
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 }; |