diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2023-11-27 13:28:09 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-11-27 22:07:08 +1100 |
commit | 0d555b57ee660d8a871781c0eebf006e855e918d (patch) | |
tree | 44b084d1dd3d426fccae692c141dfa1cae76416f /arch/powerpc/include/asm/ppc-pci.h | |
parent | 8f9abaa6d7de0a70fc68acaedce290c1f96e2e59 (diff) |
powerpc: pmd_move_must_withdraw() is only needed for CONFIG_TRANSPARENT_HUGEPAGE
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
Diffstat (limited to 'arch/powerpc/include/asm/ppc-pci.h')
0 files changed, 0 insertions, 0 deletions