On Tue, Jun 23, 2020 at 12:29 AM Paolo Bonzini <pbonzini@xxxxxxxxxx> wrote: > > Include bitops.h to get BITS_PER_LONG and avoid errors such as > > lib/alloc.c: In function mult_overflow: > lib/alloc.c:24:9: error: right shift count >= width of type > [-Werror=shift-count-overflow] > 24 | if ((a >> 32) && (b >> 32)) > | ^~ > > Fixes: cde8415e1 ("lib/alloc.c: add overflow check for calloc") > Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx> Reviewed-by: Jim Mattson <jmattson@xxxxxxxxxx>