]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/mm: fix variable 'pud' set but not used
authorQian Cai <cai@lca.pw>
Wed, 31 Jul 2019 20:05:45 +0000 (16:05 -0400)
committerWill Deacon <will@kernel.org>
Thu, 1 Aug 2019 14:00:27 +0000 (15:00 +0100)
commitfc1ff9ff39b219f9cb8abdc7661af407c38765f4
tree46704a50130b71f338921b99515616a4f09f70c8
parente47124f0b36a51e1a2853e24274a7e13e929fdeb
arm64/mm: fix variable 'pud' set but not used

GCC throws a warning,

arch/arm64/mm/mmu.c: In function 'pud_free_pmd_page':
arch/arm64/mm/mmu.c:1033:8: warning: variable 'pud' set but not used
[-Wunused-but-set-variable]
  pud_t pud;
        ^~~

because pud_table() is a macro and compiled away. Fix it by making it a
static inline function and for pud_sect() as well.

Signed-off-by: Qian Cai <cai@lca.pw>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/pgtable.h