From: "tip-bot for H. Peter Anvin" <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org,
konrad.wilk@oracle.com, torvalds@linux-foundation.org,
ak@linux.kernel.org, tglx@linutronix.de, hpa@linux.intel.com
Subject: [tip:x86/asmlinkage] x86, paravirt: Remove duplicate definition for DEF_NATIVE
Date: Wed, 4 Sep 2013 10:18:45 -0700 [thread overview]
Message-ID: <tip-f2a7b303d6e0bfb75b611b560af218608e50011f@git.kernel.org> (raw)
In-Reply-To: <CA+55aFxVv==DC0JdS87V+cPr-twN+TujYg5XmgHOjJOAkZ4xwQ@mail.gmail.com>
Commit-ID: f2a7b303d6e0bfb75b611b560af218608e50011f
Gitweb: http://git.kernel.org/tip/f2a7b303d6e0bfb75b611b560af218608e50011f
Author: H. Peter Anvin <hpa@linux.intel.com>
AuthorDate: Wed, 4 Sep 2013 09:43:30 -0700
Committer: H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Wed, 4 Sep 2013 09:46:43 -0700
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
---
arch/x86/kernel/paravirt.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c
index 884aa40..1b10af8 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 };
next prev parent reply other threads:[~2013-09-04 17:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-03 14:39 [GIT PULL] x86/asmlinkage changes for v3.12 Ingo Molnar
2013-09-04 15:58 ` Linus Torvalds
2013-09-04 16:45 ` H. Peter Anvin
2013-10-04 8:28 ` Fengguang Wu
2013-10-04 14:19 ` H. Peter Anvin
2013-10-04 14:20 ` H. Peter Anvin
2013-09-04 17:18 ` tip-bot for H. Peter Anvin [this message]
2013-09-05 0:41 ` Stephen Rothwell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-f2a7b303d6e0bfb75b611b560af218608e50011f@git.kernel.org \
--to=tipbot@zytor.com \
--cc=ak@linux.kernel.org \
--cc=hpa@linux.intel.com \
--cc=hpa@zytor.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).