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>
This commit is contained in:
parent
5116d8f6b9
commit
c428dcc9b9
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@
|
||||||
#define KVM_COALESCED_MMIO_PAGE_OFFSET 1
|
#define KVM_COALESCED_MMIO_PAGE_OFFSET 1
|
||||||
|
|
||||||
/* We don't currently support large pages. */
|
/* 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;
|
||||||
struct kvm_run;
|
struct kvm_run;
|
||||||
|
|
Loading…
Add table
Reference in a new issue