projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e13175
)
kvm: x86: hyperv: make function static to avoid compiling warning
author
Jiang Biao
<jiang.biao2@zte.com.cn>
Mon, 7 Nov 2016 00:56:33 +0000
(08:56 +0800)
committer
Radim Krčmář
<rkrcmar@redhat.com>
Wed, 16 Nov 2016 21:09:44 +0000
(22:09 +0100)
synic_set_irq is only used in hyperv.c, and should be static to
avoid compiling warning when with -Wmissing-prototypes option.
Signed-off-by: Jiang Biao <jiang.biao2@zte.com.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/hyperv.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/hyperv.c
b/arch/x86/kvm/hyperv.c
index 42b1c83741c8f515ae37a5eb85bc87067f9f48f1..99cde5220e0799fd84aca5a6774dce47e289a73c 100644
(file)
--- a/
arch/x86/kvm/hyperv.c
+++ b/
arch/x86/kvm/hyperv.c
@@
-291,7
+291,7
@@
static int synic_get_msr(struct kvm_vcpu_hv_synic *synic, u32 msr, u64 *pdata)
return ret;
}
-int synic_set_irq(struct kvm_vcpu_hv_synic *synic, u32 sint)
+
static
int synic_set_irq(struct kvm_vcpu_hv_synic *synic, u32 sint)
{
struct kvm_vcpu *vcpu = synic_to_vcpu(synic);
struct kvm_lapic_irq irq;