From patchwork Thu Oct 1 03:05:35 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zachary Amsden X-Patchwork-Id: 50812 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9138CZi005446 for ; Thu, 1 Oct 2009 03:08:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755536AbZJADHt (ORCPT ); Wed, 30 Sep 2009 23:07:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755535AbZJADHt (ORCPT ); Wed, 30 Sep 2009 23:07:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6073 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755534AbZJADHs (ORCPT ); Wed, 30 Sep 2009 23:07:48 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9137qIt023698 for ; Wed, 30 Sep 2009 23:07:52 -0400 Received: from [10.11.12.207] (vpn-12-207.rdu.redhat.com [10.11.12.207]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9137okp024036; Wed, 30 Sep 2009 23:07:51 -0400 Message-ID: <4AC41C7F.5040801@redhat.com> Date: Wed, 30 Sep 2009 17:05:35 -1000 From: Zachary Amsden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3 MIME-Version: 1.0 To: Avi Kivity , Eduardo Habkost , kvm@vger.kernel.org Subject: [PATCH] Fix warning in sync X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/sync b/sync index b09f629..0bbd488 100755 --- a/sync +++ b/sync @@ -97,6 +97,9 @@ def __hack(data): line = '#include ' 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)