lkml.org 
[lkml]   [2016]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [tip:x86/boot] x86/boot: Clean up pointer casting
On Fri, May 06, 2016 at 12:36:19PM +0200, Ingo Molnar wrote:
>
> 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;
> ^

Blergh, that's when choose_random_location() is a stub and it needs to
do

return (unsigned char *)output_ptr;

too.

Lemme run all the *config builds on the fixed version before I send you
a v2.

Thanks.

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.

\
 
 \ /
  Last update: 2016-05-06 13:01    [W:0.076 / U:1.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site