From: Zachary Amsden <zamsden@redhat.com>
To: Avi Kivity <avi@redhat.com>,
Eduardo Habkost <ehabkost@redhat.com>,
kvm@vger.kernel.org
Subject: [PATCH] Fix warning in sync
Date: Wed, 30 Sep 2009 17:05:35 -1000 [thread overview]
Message-ID: <4AC41C7F.5040801@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 26 bytes --]
Patch is self-explanatory
[-- Attachment #2: kvm-kmod-mmu_notifier_change_pte-warning-fix.patch --]
[-- Type: text/plain, Size: 967 bytes --]
commit 071a800cd07c2b9d13c7909aa99016d89a814ae6
Author: Zachary Amsden <zamsden@redhat.com>
Date: Wed Sep 30 17:03:16 2009 -1000
Remove warning due to kvm_mmu_notifier_change_pte being static
Signed-off-by: Zachary Amsden <zamsden@redhat.com>
diff --git a/sync b/sync
index b09f629..0bbd488 100755
--- a/sync
+++ b/sync
@@ -97,6 +97,9 @@ def __hack(data):
line = '#include <asm/types.h>'
if match(r'\t\.change_pte.*kvm_mmu_notifier_change_pte,'):
line = '#ifdef MMU_NOTIFIER_HAS_CHANGE_PTE\n' + line + '\n#endif'
+ if match(r'static void kvm_mmu_notifier_change_pte'):
+ line = sub(r'static ', '', line)
+ line = '#ifdef MMU_NOTIFIER_HAS_CHANGE_PTE\n' + 'static\n' + '#endif\n' + line
line = sub(r'\bhrtimer_init\b', 'hrtimer_init_p', line)
line = sub(r'\bhrtimer_start\b', 'hrtimer_start_p', line)
line = sub(r'\bhrtimer_cancel\b', 'hrtimer_cancel_p', line)
next reply other threads:[~2009-10-01 3:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-01 3:05 Zachary Amsden [this message]
2009-10-01 13:34 ` [PATCH] Fix warning in sync Marcelo Tosatti
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=4AC41C7F.5040801@redhat.com \
--to=zamsden@redhat.com \
--cc=avi@redhat.com \
--cc=ehabkost@redhat.com \
--cc=kvm@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.