lkml.org 
[lkml]   [2018]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86: mce: fix type mismatch warning


On Wed, 10 Jan 2018, Arnd Bergmann wrote:

> The printed symbol is a 64-bit address, so we get a warning when
> building this code for 32-bit kernels:
>
> arch/x86/kernel/cpu/mcheck/mce.c: In function '__print_mce':
> arch/x86/kernel/cpu/mcheck/mce.c:237:21: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>
> This uses an extra uintptr_t cast to avoid the warning.
>
> Fixes: 7b6061627eb8 ("x86: do not use print_symbol()")

I have no idea where this commit comes from .... It's neither in Linus tree
nor in tip.

Thanks,

tglx

\
 
 \ /
  Last update: 2018-01-14 23:27    [W:0.105 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site