Re: [PATCH v2] asm-generic: fix variable 'p4d' set but not used

2019-08-15 Thread Guenter Roeck
On Tue, Aug 06, 2019 at 07:29:17PM -0400, Qian Cai wrote: > A compiler throws a warning on an arm64 system since the > commit 9849a5697d3d ("arch, mm: convert all architectures to use > 5level-fixup.h"), > > mm/kasan/init.c: In function 'kasan_free_p4d': > mm/kasan/init.c:344:9: warning: variable

Re: [PATCH v2] asm-generic: fix variable 'p4d' set but not used

2019-08-07 Thread Arnd Bergmann
On Wed, Aug 7, 2019 at 1:29 AM Qian Cai wrote: > > A compiler throws a warning on an arm64 system since the > commit 9849a5697d3d ("arch, mm: convert all architectures to use > 5level-fixup.h"), > > mm/kasan/init.c: In function 'kasan_free_p4d': > mm/kasan/init.c:344:9: warning: variable 'p4d' set

[PATCH v2] asm-generic: fix variable 'p4d' set but not used

2019-08-06 Thread Qian Cai
A compiler throws a warning on an arm64 system since the commit 9849a5697d3d ("arch, mm: convert all architectures to use 5level-fixup.h"), mm/kasan/init.c: In function 'kasan_free_p4d': mm/kasan/init.c:344:9: warning: variable 'p4d' set but not used [-Wunused-but-set-variable] p4d_t *p4d;