Re: [PATCH] x86: mce: fix type mismatch warning

2018-01-14 Thread Thomas Gleixner
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

[PATCH] x86: mce: fix type mismatch warning

2018-01-10 Thread Arnd Bergmann
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 u