ARM: 9314/1: tcm: move tcm_init() prototype to asm/tcm.h
authorArnd Bergmann <arnd@arndb.de>
Fri, 2 Jun 2023 18:28:43 +0000 (19:28 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 19 Jun 2023 08:35:59 +0000 (09:35 +0100)
commitaecc83e5064b397f125585ba703ac74a695c2d73
treef042895ddd6ce49cd794bea2f62d3a48f2bdb61d
parenta12f8586afd6ee0af72c3ee93a4bccc065f37e0e
ARM: 9314/1: tcm: move tcm_init() prototype to asm/tcm.h

The function definition is in a file that does not include the
header with the declaration:

arch/arm/kernel/tcm.c:256:13: error: no previous prototype for 'tcm_init'

Move the declaration to a global header where it can actually be
included.

Fixes: de40614e92bf ("ARM: 7694/1: ARM, TCM: initialize TCM in paging_init(), instead of setup_arch()")
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
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/tcm.h
arch/arm/mm/mmu.c
arch/arm/mm/tcm.h [deleted file]