]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pmem: Include pmem prototypes
authorCédric Le Goater <clg@kaod.org>
Mon, 4 Jan 2021 14:31:48 +0000 (15:31 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 30 Jan 2021 00:39:28 +0000 (11:39 +1100)
commitae745332e0aa639c71d88f5be629510e9476dbe6
treeb17ea6c5986acb9f3b439d684f497d67a5a87354
parentaf84ac710d0d93f29ec4e2e4169ca0af69bce93b
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: 6b69525c5441 ("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
arch/powerpc/lib/pmem.c