Skip to content

Commit

Permalink
KVM: make 'lapic_timer_ops' and 'kpit_ops' static
Browse files Browse the repository at this point in the history
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 <hannes@hanneseder.net>
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Hannes Eder authored and Avi Kivity committed Jun 10, 2009
1 parent 0b5d7a2 commit 386eb6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/x86/kvm/i8254.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kvm/lapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit 386eb6e

Please sign in to comment.