Re: [PATCH] um: define set_pte_at() as a static inline function, not a macro

2019-03-13 Thread Anton Ivanov
On 13/03/2019 10:14, Bartosz Golaszewski wrote: From: Bartosz Golaszewski When defined as macro, the mm argument is unused and subsequently the variable passed as mm is considered unused by the compiler. This fixes a build warning. Signed-off-by: Bartosz Golaszewski --- arch/um/include/a

Re: [PATCH] um: define set_pte_at() as a static inline function, not a macro

2019-03-13 Thread Geert Uytterhoeven
On Wed, Mar 13, 2019 at 11:16 AM Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > When defined as macro, the mm argument is unused and subsequently the > variable passed as mm is considered unused by the compiler. This fixes > a build warning. > > Signed-off-by: Bartosz Golaszewski Re

[PATCH] um: define set_pte_at() as a static inline function, not a macro

2019-03-13 Thread Bartosz Golaszewski
From: Bartosz Golaszewski When defined as macro, the mm argument is unused and subsequently the variable passed as mm is considered unused by the compiler. This fixes a build warning. Signed-off-by: Bartosz Golaszewski --- arch/um/include/asm/pgtable.h | 7 ++- 1 file changed, 6 insertions