]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/nohash: Remove pgd_huge() stub
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 7 Sep 2022 09:34:44 +0000 (11:34 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Sep 2022 10:58:18 +0000 (20:58 +1000)
linux/hugetlb.h has a fallback pgd_huge() macro for when
pgd_huge is not defined.

Remove the powerpc redundant definitions.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/ae6aa7fce84f7abcbf67f534271a4a6dd7949b0d.1662543243.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/nohash/pgtable.h
arch/powerpc/include/asm/page.h

index b499da6c1a994b485e5149e50624032015e7c0f6..08429c612cdfe2268f936a3f75cb3fc91c20190d 100644 (file)
@@ -277,12 +277,6 @@ static inline int pud_huge(pud_t pud)
        return 0;
 }
 
-static inline int pgd_huge(pgd_t pgd)
-{
-       return 0;
-}
-#define pgd_huge               pgd_huge
-
 #define is_hugepd(hpd)         (hugepd_ok(hpd))
 #endif
 
index e5f75c70eda8366c79f3f3fc821c3ed406f23408..c67eb9531a3ffa9eb06a1d18ec6416e4d3299181 100644 (file)
@@ -311,7 +311,6 @@ static inline bool pfn_valid(unsigned long pfn)
 
 #ifndef CONFIG_HUGETLB_PAGE
 #define is_hugepd(pdep)                (0)
-#define pgd_huge(pgd)          (0)
 #endif /* CONFIG_HUGETLB_PAGE */
 
 struct page;