Skip to content

Commit

Permalink
plat-sam: fix warnings found during checkpatch
Browse files Browse the repository at this point in the history
Remove 'extern' from function prototypes in .h files.
Align the parameters in functions.

Signed-off-by: Tony Han <tony.han@microchip.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
  • Loading branch information
TonyHan11 committed Dec 4, 2023
1 parent 01ef3c7 commit 8af07fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion core/arch/arm/plat-sam/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
14 changes: 7 additions & 7 deletions core/arch/arm/plat-sam/matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@

#include <tee_api_types.h>

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);
Expand Down

0 comments on commit 8af07fd

Please sign in to comment.