powerpc/mm: remove const type qualifier from function ‘pud_pfn’
authorMathieu Malaterre <malat@debian.org>
Wed, 31 Oct 2018 11:03:07 +0000 (12:03 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 25 Nov 2018 06:11:22 +0000 (17:11 +1100)
Type qualifier on return type is ignored. Remove warning in W=1:

  arch/powerpc/include/asm/book3s/64/pgtable.h:1268:25: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/pgtable.h

index 6c99e846a8c9557f1e7c15da0f92c43644677502..2e6ada28da645fd6a122d153fedfdc2c62b7843e 100644 (file)
@@ -1304,7 +1304,7 @@ static inline int pgd_devmap(pgd_t pgd)
 }
 #endif /* CONFIG_TRANSPARENT_HUGEPAGE */
 
-static inline const int pud_pfn(pud_t pud)
+static inline int pud_pfn(pud_t pud)
 {
        /*
         * Currently all calls to pud_pfn() are gated around a pud_devmap()