From patchwork Tue Mar 10 21:51:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hannes Eder X-Patchwork-Id: 10988 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 n2ALpwRA027961 for ; Tue, 10 Mar 2009 21:51:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755210AbZCJVv4 (ORCPT ); Tue, 10 Mar 2009 17:51:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754878AbZCJVv4 (ORCPT ); Tue, 10 Mar 2009 17:51:56 -0400 Received: from mail-fx0-f176.google.com ([209.85.220.176]:33501 "EHLO mail-fx0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754399AbZCJVvz (ORCPT ); Tue, 10 Mar 2009 17:51:55 -0400 Received: by fxm24 with SMTP id 24so1780404fxm.37 for ; Tue, 10 Mar 2009 14:51:50 -0700 (PDT) Received: by 10.103.173.15 with SMTP id a15mr3482508mup.59.1236721910556; Tue, 10 Mar 2009 14:51:50 -0700 (PDT) Received: from vmbox.hanneseder.net (dynamic-92-61-48-155.dialog.fastdsl.at [92.61.48.155]) by mx.google.com with ESMTPS id e8sm11693012muf.48.2009.03.10.14.51.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 10 Mar 2009 14:51:50 -0700 (PDT) Received: by vmbox.hanneseder.net (sSMTP sendmail emulation); Tue, 10 Mar 2009 22:51:46 +0100 From: Hannes Eder Subject: [PATCH] KVM: make 'lapic_timer_ops' and 'kpit_ops' static Date: Tue, 10 Mar 2009 22:51:09 +0100 Message-ID: <20090310215053.11822.79188.stgit@f10box.hanneseder.net> User-Agent: StGit/0.14.3.348.gcb02.dirty MIME-Version: 1.0 To: Avi Kivity Cc: kvm@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Fix this sparse warnings: arch/x86/kvm/lapic.c:916:22: warning: symbol 'lapic_timer_ops' was not declared. Should it be static? arch/x86/kvm/i8254.c:268:22: warning: symbol 'kpit_ops' was not declared. Should it be static? Signed-off-by: Hannes Eder --- arch/x86/kvm/i8254.c | 2 +- arch/x86/kvm/lapic.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c index 4e2e3f2..cf09bb6 100644 --- a/arch/x86/kvm/i8254.c +++ b/arch/x86/kvm/i8254.c @@ -265,7 +265,7 @@ static bool kpit_is_periodic(struct kvm_timer *ktimer) return ps->is_periodic; } -struct kvm_timer_ops kpit_ops = { +static struct kvm_timer_ops kpit_ops = { .is_periodic = kpit_is_periodic, }; diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index dd934d2..4d76bb6 100644 --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c @@ -913,7 +913,7 @@ void kvm_apic_nmi_wd_deliver(struct kvm_vcpu *vcpu) kvm_apic_local_deliver(apic, APIC_LVT0); } -struct kvm_timer_ops lapic_timer_ops = { +static struct kvm_timer_ops lapic_timer_ops = { .is_periodic = lapic_is_periodic, };