Re: [tip:x86/boot] x86/boot: Clean up pointer casting
From: Ingo Molnar
Date: Fri May 06 2016 - 06:36:29 EST
Hm, your patch throws a lot of warnings during allnoconfig builds:
In file included from arch/x86/boot/compressed/error.c:6:0:
arch/x86/boot/compressed/misc.h: In function âchoose_random_locationâ:
arch/x86/boot/compressed/misc.h:83:9: warning: return makes pointer from integer
without a cast [-Wint-conversion]
return output_ptr;
^
In file included from arch/x86/boot/compressed/early_serial_console.c:1:0:
arch/x86/boot/compressed/misc.h: In function âchoose_random_locationâ:
arch/x86/boot/compressed/misc.h:83:9: warning: return makes pointer from integer
without a cast [-Wint-conversion]
return output_ptr;
^
CC arch/x86/boot/compressed/misc.o
In file included from arch/x86/boot/compressed/cmdline.c:1:0:
arch/x86/boot/compressed/misc.h: In function âchoose_random_locationâ:
arch/x86/boot/compressed/misc.h:83:9: warning: return makes pointer from integer
without a cast [-Wint-conversion]
return output_ptr;
^
In file included from arch/x86/boot/compressed/misc.c:14:0:
arch/x86/boot/compressed/misc.h: In function âchoose_random_locationâ:
arch/x86/boot/compressed/misc.h:83:9: warning: return makes pointer from integer
without a cast [-Wint-conversion]
return output_ptr;
Thanks,
Ingo