ARM: 9305/1: add clear/copy_user_highpage declarations
authorArnd Bergmann <arnd@arndb.de>
Fri, 2 Jun 2023 18:28:45 +0000 (19:28 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 19 Jun 2023 08:35:53 +0000 (09:35 +0100)
commit34bde7f271c4b885d0fdaf49509fcea711ac0bd9
treef2f79ee61d28b782dd55781b3efeb592bc2a1c42
parentae1f8d793a19a63263d6a30a311a2db4e86d8785
ARM: 9305/1: add clear/copy_user_highpage declarations

The CPU specific helpers have to be global functions when building
a kernel for just one CPU, but are called through indirect function
pointers in a multi-CPU kernel. This config currently lacks the
declarations for the individual helpers, e.g.:

arch/arm/mm/copypage-v4wb.c:47:6: error: no previous prototype for 'v4wb_copy_user_highpage' [-Werror=missing-prototypes]
arch/arm/mm/copypage-v4wb.c:65:6: error: no previous prototype for 'v4wb_clear_user_highpage' [-Werror=missing-prototypes]

Add the complete set of prototypes in asm/page.h to allow
building iwth -Wmissing-prototypes.

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/page.h