powerpc/suspend: Add prototype for do_after_copyback()

With HIBERNATION=y the build breaks with:

  arch/powerpc/kernel/swsusp_64.c:14:6: error: no previous prototype for ‘do_after_copyback’ [-Werror=missing-prototypes]
  14 | void do_after_copyback(void)
     |      ^~~~~~~~~~~~~~~~~

do_after_copyback() is only called from asm, so there is no prototype,
nor any header where it makes sense to place one. Just add a prototype
in the C file to fix the build error.

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231129131919.2528517-1-mpe@ellerman.id.au
This commit is contained in:
Michael Ellerman 2023-11-30 00:19:15 +11:00
parent 9be4feb768
commit 360f051d82
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,8 @@
#include <linux/interrupt.h>
#include <linux/nmi.h>
void do_after_copyback(void);
void do_after_copyback(void)
{
iommu_restore();