Re: [PATCH] powerpc: silence unused-but-set-variable warnings

2019-03-06 Thread Christophe Leroy
On 03/07/2019 03:48 AM, Qian Cai wrote: pte_unmap() compiles away on some powerpc platforms, so silence the warnings below by using the argument to pte_unmap() as a nop. Also, fix checkpatch.pl warnings "Single statement macros should not use a do {} while (0) loop". mm/memory.c: In function

[PATCH] powerpc: silence unused-but-set-variable warnings

2019-03-06 Thread Qian Cai
pte_unmap() compiles away on some powerpc platforms, so silence the warnings below by using the argument to pte_unmap() as a nop. Also, fix checkpatch.pl warnings "Single statement macros should not use a do {} while (0) loop". mm/memory.c: In function 'copy_pte_range': mm/memory.c:820:24: warning