tcm: include <asm/tcm.h> for missing declarations
PATCH 1/1 tcm: include <asm/tcm.h> for missing declarations
The arch/arm/kernel/tcm.c should include <asm/tcm.h> for declarations of tcm_alloc, tcm_free and other functions. Fixes the following sparse warnings:
arch/arm/kernel/tcm.c:74:6: warning: symbol 'tcm_alloc' was not declared. Should it be static? arch/arm/kernel/tcm.c:92:6: warning: symbol 'tcm_free' was not declared. Should it be static? arch/arm/kernel/tcm.c:98:6: warning: symbol 'tcm_dtcm_present' was not declared. Should it be static? arch/arm/kernel/tcm.c:104:6: warning: symbol 'tcm_itcm_present' was not declared. Should it be static?
Signed-off-by Ben Dooks <[email protected]>
---
Cc: Russell King <[email protected]>
Cc: [email protected]
--- arch/arm/kernel/tcm.c | 1 + 1 file changed, 1 insertion(+)
arch/arm/kernel/tcm.c +1 -0
@@ -18,6 +18,7 @@#include <asm/memory.h> #include <asm/system_info.h> #include <asm/traps.h> +#include <asm/tcm.h> #define TCMTR_FORMAT_MASK 0xe0000000U
Signature · 7 lines
2.23.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel