lkml.org 
[lkml]   [2018]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] kvm: x86: fix a prototype warning
From
Date
On 06.04.2018 23:47, Peng Hao wrote:
> warning: no previous prototype for ‘vmx_enable_tdp’
>
> Signed-off-by: Peng Hao <peng.hao2@zte.com.cn>
> ---
> arch/x86/kvm/vmx.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
> index f0fd50b..86681bc 100644
> --- a/arch/x86/kvm/vmx.c
> +++ b/arch/x86/kvm/vmx.c
> @@ -6954,7 +6954,7 @@ static void wakeup_handler(void)
> spin_unlock(&per_cpu(blocked_vcpu_on_cpu_lock, cpu));
> }
>
> -void vmx_enable_tdp(void)
> +static void vmx_enable_tdp(void)
> {
> kvm_mmu_set_mask_ptes(VMX_EPT_READABLE_MASK,
> enable_ept_ad_bits ? VMX_EPT_ACCESS_BIT : 0ull,
>

Reviewed-by: David Hildenbrand <david@redhat.com>

--

Thanks,

David / dhildenb

\
 
 \ /
  Last update: 2018-04-09 13:02    [W:0.043 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site