Skip to content

Commit

Permalink
core: firewall: fix warning when compiling with no trace.
Browse files Browse the repository at this point in the history
When compiling with CFG_TEE_CORE_LOG_LEVEL=0 this warning is raised :
core/drivers/firewall/firewall.c: In function ‘firewall_dt_probe_bus’:
core/drivers/firewall/firewall.c:297:62: error: unused parameter ‘ctrl’ [-Werror=unused-parameter]
  297 |                                  struct firewall_controller *ctrl)

Signed-off-by: Thomas Bourgoin <[email protected]>
Reviewed-by: Jerome Forissier <[email protected]>
Reviewed-by: Gatien Chevallier <[email protected]>
  • Loading branch information
tbourgoi authored and jforissier committed Jul 3, 2024
1 parent 7e67951 commit afe2fbd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/drivers/firewall/firewall.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ TEE_Result firewall_dt_controller_register(const void *fdt, int node,
ctrl, DT_DRIVER_FIREWALL);
}

TEE_Result firewall_dt_probe_bus(const void *fdt, int node,
struct firewall_controller *ctrl)
TEE_Result
firewall_dt_probe_bus(const void *fdt, int node,
struct firewall_controller *ctrl __maybe_unused)
{
TEE_Result res = TEE_ERROR_GENERIC;
struct firewall_query *fw = NULL;
Expand Down

0 comments on commit afe2fbd

Please sign in to comment.