kernel_samsung_a53x/arch/powerpc/mm/book3s64
Stephen Rothwell 8b156af7d3 powerpc: pmd_move_must_withdraw() is only needed for CONFIG_TRANSPARENT_HUGEPAGE
[ Upstream commit 0d555b57ee660d8a871781c0eebf006e855e918d ]

The linux-next build of powerpc64 allnoconfig fails with:

  arch/powerpc/mm/book3s64/pgtable.c:557:5: error: no previous prototype for 'pmd_move_must_withdraw'
    557 | int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl,
        |     ^~~~~~~~~~~~~~~~~~~~~~

Caused by commit:

  c6345dfa6e3e ("Makefile.extrawarn: turn on missing-prototypes globally")

Fix it by moving the function definition under
CONFIG_TRANSPARENT_HUGEPAGE like the prototype. The function is only
called when CONFIG_TRANSPARENT_HUGEPAGE=y.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
[mpe: Flesh out change log from linux-next patch]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231127132809.45c2b398@canb.auug.org.au
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:13:08 +01:00
..
hash_4k.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hash_64k.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hash_hugepage.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hash_hugetlbpage.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hash_native.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hash_pgtable.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hash_tlb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hash_utils.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
internal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iommu_api.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmu_context.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pgtable.c powerpc: pmd_move_must_withdraw() is only needed for CONFIG_TRANSPARENT_HUGEPAGE 2024-11-18 12:13:08 +01:00
pkeys.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
radix_hugetlbpage.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
radix_pgtable.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
radix_tlb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
slb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
subpage_prot.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00