Re: [PATCH] s390/mm: fix -Wunused-but-set-variable warnings

2019-10-04 Thread Christian Borntraeger
On 03.10.19 23:36, Qian Cai wrote: > Convert two functions to static inline to get ride of W=1 GCC warnings > like, > > mm/gup.c: In function 'gup_pte_range': > mm/gup.c:1816:16: warning: variable 'ptem' set but not used > [-Wunused-but-set-variable] > pte_t *ptep, *ptem; > ^~

[PATCH] s390/mm: fix -Wunused-but-set-variable warnings

2019-10-03 Thread Qian Cai
Convert two functions to static inline to get ride of W=1 GCC warnings like, mm/gup.c: In function 'gup_pte_range': mm/gup.c:1816:16: warning: variable 'ptem' set but not used [-Wunused-but-set-variable] pte_t *ptep, *ptem; ^~~~ mm/mmap.c: In function 'acct_stack_growth': mm/mma