powerpc/mm: remove const type qualifier from function ‘pud_pfn’
PATCH 1/1 powerpc/mm: remove const type qualifier from function ‘pud_pfn’
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 <[email protected]>
--- arch/powerpc/include/asm/book3s/64/pgtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/include/asm/book3s/64/pgtable.h +1 -1
@@ -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()
Signature · 1 line
2.11.0
Michael Ellerman
AppliedQuoted 5 lines · Mathieu Malaterre
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 <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/c516886f8437b85489d06115c54761
cheers