• Andrew Morton's avatar
    arch/x86/kvm/mmu.c: work around gcc-4.4.4 bug · 5ec45a19
    Andrew Morton authored
    Fix this compile issue with gcc-4.4.4:
    
       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>
    Cc: Davidlohr Bueso <dave@stgolabs.net>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    5ec45a19
mmu.c 122 KB