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

2019-03-07 Thread Christophe Leroy
Le 07/03/2019 à 15:40, Qian Cai a écrit : pte_unmap() compiles away on some powerpc platforms, so silence the warnings below by making it a static inline function. mm/memory.c: In function 'copy_pte_range': mm/memory.c:820:24: warning: variable 'orig_dst_pte' set but not used [-Wunused-but-se

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

2019-03-07 Thread Qian Cai
pte_unmap() compiles away on some powerpc platforms, so silence the warnings below by making it a static inline function. mm/memory.c: In function 'copy_pte_range': mm/memory.c:820:24: warning: variable 'orig_dst_pte' set but not used [-Wunused-but-set-variable] mm/memory.c:820:9: warning: variabl