Commit c428dcc9b9f967945992a2f8529e8c50a31d7913

Authored by Stephen Rothwell
Committed by Avi Kivity
1 parent 5116d8f6b9

KVM: Make KVM_HPAGES_PER_HPAGE unsigned long to avoid build error on powerpc

Eliminates this compiler warning:

arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:1178: error: integer overflow in expression

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Avi Kivity <avi@redhat.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

arch/powerpc/include/asm/kvm_host.h
... ... @@ -34,7 +34,7 @@
34 34 #define KVM_COALESCED_MMIO_PAGE_OFFSET 1
35 35  
36 36 /* We don't currently support large pages. */
37   -#define KVM_PAGES_PER_HPAGE (1<<31)
  37 +#define KVM_PAGES_PER_HPAGE (1UL << 31)
38 38  
39 39 struct kvm;
40 40 struct kvm_run;