]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
LoongArch: Fix build error due to backport
authorHuacai Chen <chenhuacai@loongson.cn>
Sun, 4 May 2025 02:10:54 +0000 (10:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 May 2025 08:59:01 +0000 (10:59 +0200)
commit8b4c07bb511c6e565daa85d27c6681eafcd84d76
treedbfe2afba6d715fd31d4ccc02833d7bc3f067483
parentb6736e03756f42186840724eb38cb412dfb547be
LoongArch: Fix build error due to backport

In 6.1 there is no pmdp_get() definition, so use *pmd directly, in order
to avoid such build error due to a recently backport:

arch/loongarch/mm/hugetlbpage.c: In function 'huge_pte_offset':
arch/loongarch/mm/hugetlbpage.c:50:25: error: implicit declaration of function 'pmdp_get'; did you mean 'ptep_get'?  [-Wimplicit-function-declaration]
   50 |         return pmd_none(pmdp_get(pmd)) ? NULL : (pte_t *) pmd;
      |                         ^~~~~~~~
      |                         ptep_get

Reported-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/f978ec9a-b103-40af-b116-6a9238197110@roeck-us.net
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/loongarch/mm/hugetlbpage.c