Re: [Qemu-devel] [PATCH v2] i386/kvm: Fix build with -m32

2019-06-25 Thread Philippe Mathieu-Daudé
On 6/24/19 9:39 PM, Max Reitz wrote: > find_next_bit() takes a pointer of type "const unsigned long *", but the > first argument passed here is a "uint64_t *". These types are > incompatible when compiling qemu with -m32. > > Just use ctz64() instead. > > Fixes: c686193072a47032d83cb4e131dc49ae3

Re: [Qemu-devel] [PATCH v2] i386/kvm: Fix build with -m32

2019-06-24 Thread Eduardo Habkost
On Mon, Jun 24, 2019 at 09:39:13PM +0200, Max Reitz wrote: > find_next_bit() takes a pointer of type "const unsigned long *", but the > first argument passed here is a "uint64_t *". These types are > incompatible when compiling qemu with -m32. > > Just use ctz64() instead. > > Fixes: c686193072a

[Qemu-devel] [PATCH v2] i386/kvm: Fix build with -m32

2019-06-24 Thread Max Reitz
find_next_bit() takes a pointer of type "const unsigned long *", but the first argument passed here is a "uint64_t *". These types are incompatible when compiling qemu with -m32. Just use ctz64() instead. Fixes: c686193072a47032d83cb4e131dc49ae30f9e5d Signed-off-by: Max Reitz --- target/i386/k