Re: [PATCH v2 01/13] livepatch: Fix build failure on 32 bits processors

2021-12-22 Thread Miroslav Benes
On Mon, 20 Dec 2021, Christophe Leroy wrote: > Trying to build livepatch on powerpc/32 results in: > > kernel/livepatch/core.c: In function 'klp_resolve_symbols': > kernel/livepatch/core.c:221:23: warning: cast to pointer from integer > of different size [-Wint-to-pointer-cast] >

[PATCH v2 01/13] livepatch: Fix build failure on 32 bits processors

2021-12-20 Thread Christophe Leroy
Trying to build livepatch on powerpc/32 results in: kernel/livepatch/core.c: In function 'klp_resolve_symbols': kernel/livepatch/core.c:221:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 221 | sym = (Elf64_Sym *)sechdr