um: define set_pte_at() as a static inline function, not a macro
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 11 Apr 2019 09:49:43 +0000 (11:49 +0200)
committerRichard Weinberger <richard@nod.at>
Tue, 7 May 2019 21:18:28 +0000 (23:18 +0200)
commitea70d791c1687529edf9bb9a69530a66e1ca4584
treec7520cc8969852632589b7bb775dfb81ac216c9b
parent0d4e5ac7e78035950d564e65c38ce148cb9af681
um: define set_pte_at() as a static inline function, not a macro

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 <bgolaszewski@baylibre.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Acked-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/include/asm/pgtable.h