• Andrew Morton's avatar
    arch/x86/kvm/mmu.c: work around gcc-4.4.4 bug · 4141259b
    Andrew Morton authored
    arch/x86/kvm/mmu.c: In function 'kvm_mmu_pte_write':
    arch/x86/kvm/mmu.c:4256: error: unknown field 'cr0_wp' specified in initializer
    arch/x86/kvm/mmu.c:4257: error: unknown field 'cr4_pae' specified in initializer
    arch/x86/kvm/mmu.c:4257: warning: excess elements in union initializer
    ...
    
    gcc-4.4.4 (at least) has issues when using anonymous unions in
    initializers.
    
    Fixes: edc90b7d ("KVM: MMU: fix SMAP virtualization")
    Cc: Xiao Guangrong <guangrong.xiao@linux.intel.com>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    4141259b
mmu.c 123 KB