From 8af07fd44ecf0adc87bbcee6f2b0a373f103fde7 Mon Sep 17 00:00:00 2001 From: Tony Han Date: Sun, 8 Oct 2023 16:15:29 +0800 Subject: [PATCH] plat-sam: fix warnings found during checkpatch Remove 'extern' from function prototypes in .h files. Align the parameters in functions. Signed-off-by: Tony Han Reviewed-by: Jens Wiklander Acked-by: Etienne Carriere --- core/arch/arm/plat-sam/matrix.c | 2 +- core/arch/arm/plat-sam/matrix.h | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/arch/arm/plat-sam/matrix.c b/core/arch/arm/plat-sam/matrix.c index c0a39e57b1d..dc54dc1f3c6 100644 --- a/core/arch/arm/plat-sam/matrix.c +++ b/core/arch/arm/plat-sam/matrix.c @@ -510,7 +510,7 @@ static unsigned int matrix_read(int base, unsigned int offset) void matrix_write_protect_enable(unsigned int matrix_base) { matrix_write(matrix_base, MATRIX_WPMR, - (MATRIX_WPMR_WPKEY_PASSWD | MATRIX_WPMR_WPEN_ENABLE)); + MATRIX_WPMR_WPKEY_PASSWD | MATRIX_WPMR_WPEN_ENABLE); } void matrix_write_protect_disable(unsigned int matrix_base) diff --git a/core/arch/arm/plat-sam/matrix.h b/core/arch/arm/plat-sam/matrix.h index 216905720dc..d85bbdecadc 100644 --- a/core/arch/arm/plat-sam/matrix.h +++ b/core/arch/arm/plat-sam/matrix.h @@ -31,13 +31,13 @@ #include -extern void matrix_write_protect_enable(unsigned int matrix_base); -extern void matrix_write_protect_disable(unsigned int matrix_base); -extern void matrix_configure_slave_security(unsigned int matrix_base, - unsigned int slave, - unsigned int srtop_setting, - unsigned int srsplit_setting, - unsigned int ssr_setting); +void matrix_write_protect_enable(unsigned int matrix_base); +void matrix_write_protect_disable(unsigned int matrix_base); +void matrix_configure_slave_security(unsigned int matrix_base, + unsigned int slave, + unsigned int srtop_setting, + unsigned int srsplit_setting, + unsigned int ssr_setting); int matrix_configure_periph_non_secure(unsigned int *peri_id_array, unsigned int size);