Skip to content

Commit

Permalink
KVM: Make KVM_HPAGES_PER_HPAGE unsigned long to avoid build error on …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Stephen Rothwell authored and Avi Kivity committed Aug 5, 2009
1 parent 5116d8f commit c428dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/include/asm/kvm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#define KVM_COALESCED_MMIO_PAGE_OFFSET 1

/* We don't currently support large pages. */
#define KVM_PAGES_PER_HPAGE (1<<31)
#define KVM_PAGES_PER_HPAGE (1UL << 31)

struct kvm;
struct kvm_run;
Expand Down

0 comments on commit c428dcc

Please sign in to comment.