aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMathieu Malaterre <malat@debian.org>2018-10-31 12:03:07 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2018-11-25 17:11:22 +1100
commitc516886f8437b85489d06115c54761880c7d67ac (patch)
tree877556b4157ad46b96bb5256e2ddd790a741d6f8 /arch
parentpowerpc/32: Add .data..Lubsan_data*/.data..Lubsan_type* sections explicitly (diff)
downloadlinux-dev-c516886f8437b85489d06115c54761880c7d67ac.tar.xz
linux-dev-c516886f8437b85489d06115c54761880c7d67ac.zip
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 <malat@debian.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/include/asm/book3s/64/pgtable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/book3s/64/pgtable.h b/arch/powerpc/include/asm/book3s/64/pgtable.h
index 6c99e846a8c9..2e6ada28da64 100644
--- a/arch/powerpc/include/asm/book3s/64/pgtable.h
+++ b/arch/powerpc/include/asm/book3s/64/pgtable.h
@@ -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()