mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH] x86/kvm: Fix -Wmissing-prototypes warnings
       [not found] <201910250958273740534@zte.com.cn>
@ 2019-10-25 12:02 ` Paolo Bonzini
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2019-10-25 12:02 UTC (permalink / raw)
  To: wang.yi59, kvm
  Cc: rkrcmar, sean.j.christopherson, vkuznets, wanpengli, jmattson,
	joro, tglx, mingo, bp, hpa, x86, linux-kernel, xue.zhihong,
	up2wing, wang.liang82

Queued, thanks.  It may not appear on git.kernel.org until after KVM
Forum though.

Paolo

On 25/10/19 03:58, wang.yi59@zte.com.cn wrote:
> Gentle Ping :)
> 
>> We get two warning when build kernel with W=1:
>> arch/x86/kernel/kvm.c:872:6: warning: no previous prototype for ‘arch_haltpoll_enable’ [-Wmissing-prototypes]
>> arch/x86/kernel/kvm.c:885:6: warning: no previous prototype for ‘arch_haltpoll_disable’ [-Wmissing-prototypes]
>>
>> Including the missing head file can fix this.
>>
>> Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
>> ---
>>  arch/x86/kernel/kvm.c | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c
>> index e820568..32ef1ee 100644
>> --- a/arch/x86/kernel/kvm.c
>> +++ b/arch/x86/kernel/kvm.c
>> @@ -33,6 +33,7 @@
>>  #include <asm/apicdef.h>
>>  #include <asm/hypervisor.h>
>>  #include <asm/tlb.h>
>> +#include <asm/cpuidle_haltpoll.h>
>>
>>  static int kvmapf = 1;
> 
> 
> ---
> Best wishes
> Yi Wang
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] x86/kvm: Fix -Wmissing-prototypes warnings
@ 2019-10-10  6:37 Yi Wang
  0 siblings, 0 replies; 2+ messages in thread
From: Yi Wang @ 2019-10-10  6:37 UTC (permalink / raw)
  To: pbonzini
  Cc: rkrcmar, sean.j.christopherson, vkuznets, wanpengli, jmattson,
	joro, tglx, mingo, bp, hpa, x86, kvm, linux-kernel, xue.zhihong,
	wang.yi59, up2wing, wang.liang82

We get two warning when build kernel with W=1:
arch/x86/kernel/kvm.c:872:6: warning: no previous prototype for ‘arch_haltpoll_enable’ [-Wmissing-prototypes]
arch/x86/kernel/kvm.c:885:6: warning: no previous prototype for ‘arch_haltpoll_disable’ [-Wmissing-prototypes]

Including the missing head file can fix this.

Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
---
 arch/x86/kernel/kvm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c
index e820568..32ef1ee 100644
--- a/arch/x86/kernel/kvm.c
+++ b/arch/x86/kernel/kvm.c
@@ -33,6 +33,7 @@
 #include <asm/apicdef.h>
 #include <asm/hypervisor.h>
 #include <asm/tlb.h>
+#include <asm/cpuidle_haltpoll.h>
 
 static int kvmapf = 1;
 
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-25 12:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <201910250958273740534@zte.com.cn>
2019-10-25 12:02 ` [PATCH] x86/kvm: Fix -Wmissing-prototypes warnings Paolo Bonzini
2019-10-10  6:37 Yi Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®