summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2021-01-04 15:31:48 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2021-01-30 01:39:28 +0100
commitd03f210e6ed8f5d64b00f0f07b03db74aa5b95a1 (patch)
treeb17ea6c5986acb9f3b439d684f497d67a5a87354 /arch/powerpc/lib
parentpowerpc/pseries/ras: Make init_ras_hotplug_IRQ() static (diff)
downloadlinux-d03f210e6ed8f5d64b00f0f07b03db74aa5b95a1.tar.xz
linux-d03f210e6ed8f5d64b00f0f07b03db74aa5b95a1.zip
powerpc/pmem: Include pmem prototypes
It fixes this W=1 compile error : ../arch/powerpc/lib/pmem.c:51:6: error: no previous prototype for ‘arch_wb_cache_pmem’ [-Werror=missing-prototypes] 51 | void arch_wb_cache_pmem(void *addr, size_t size) | ^~~~~~~~~~~~~~~~~~ ../arch/powerpc/lib/pmem.c:58:6: error: no previous prototype for ‘arch_invalidate_pmem’ [-Werror=missing-prototypes] 58 | void arch_invalidate_pmem(void *addr, size_t size) | ^~~~~~~~~~~~~~~~~~~~ Fixes: 32ce3862af3c ("powerpc/lib: Implement PMEM API") Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210104143206.695198-6-clg@kaod.org
Diffstat (limited to 'arch/powerpc/lib')
-rw-r--r--arch/powerpc/lib/pmem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/lib/pmem.c b/arch/powerpc/lib/pmem.c
index 1550e0d2513a..eb2919ddf9b9 100644
--- a/arch/powerpc/lib/pmem.c
+++ b/arch/powerpc/lib/pmem.c
@@ -6,6 +6,7 @@
#include <linux/string.h>
#include <linux/export.h>
#include <linux/uaccess.h>
+#include <linux/libnvdimm.h>
#include <asm/cacheflush.h>