Skip to content

Commit ae85c2c

Browse files
nicola-mazzucato-armnashif
authored andcommitted
CC3XX: Fix 'unused variable' warning for lock_dfa_enabled
Fix the following warning in cc3xx_init.c warning: unused variable 'lock_dfa_enabled' [-Wunused-variable] 75 | uint32_t lock_dfa_enabled = dfa_is_supported; | ^~~~~~~~~~~~~~~~ Signed-off-by: Nicola Mazzucato <nicola.mazzucato@arm.com> Change-Id: I6d6ad2100557b55d4aabdfcdb1ea3b9e2d799b22 (cherry picked from commit e201cb6)
1 parent c9af70f commit ae85c2c

File tree

1 file changed

+1
-0
lines changed
  • platform/ext/target/arm/drivers/cc3xx/low_level_driver/src

1 file changed

+1
-0
lines changed

platform/ext/target/arm/drivers/cc3xx/low_level_driver/src/cc3xx_init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ static cc3xx_err_t setup_dfa_countermeasures(void)
9191
* to be switched off.
9292
*/
9393
{
94+
(void)lock_dfa_enabled;
9495
#endif /* CC3XX_CONFIG_AES_TUNNELLING_ENABLE */
9596
P_CC3XX->ao.host_ao_lock_bits &= ~(0b1U << 7); /* Unset HOST_FORCE_DFA_ENABLE */
9697
}

0 commit comments

Comments
 (0)