arm-trusted-firmware/include
Sandrine Bailleux 1931d1d735 ARM platforms: Make arm_lock static
The ARM_INSTANTIATE_LOCK macro defines a lock meant to be further
manipulated using the arm_lock_init/get/release() macros. It has 2
variants, depending on the BL image it is compiled for. One version
defines the lock variable with internal linkage whereas the other one,
with external linkage.

Code that uses these macros is not compliant with MISRA rule 8.4 because
when using the external linkage version, there is no visible declaration
for the lock variable.

This patch defines the arm_lock variable with internal linkage in both
cases. This fits well the way these macros are used in the code today,
where the lock is not used outside of the translation unit it is
defined in.

Change-Id: I213a74a2a6088a4f1e9a61a319ca7579c2001320
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
2018-07-11 17:33:29 +02:00
..
bl1 Fix MISRA rule 8.4 Part 1 2018-02-28 17:19:55 +00:00
bl2 Fix MISRA rule 8.5 in common code 2018-04-13 14:01:56 +01:00
bl2u Fix MISRA rule 8.4 in common code 2018-02-28 17:18:46 +00:00
bl31 RAS: Allow individual interrupt registration 2018-05-04 08:33:17 +01:00
bl32 Introduce the new BL handover interface 2018-02-26 16:31:10 +00:00
common Add end_vector_entry assembler macro 2018-07-11 09:23:00 +01:00
drivers Merge pull request #1418 from antonio-nino-diaz-arm/an/arm-multi-console 2018-06-19 14:00:07 +01:00
lib Add initial CPU support for Cortex-Helios 2018-07-11 13:26:52 +01:00
plat ARM platforms: Make arm_lock static 2018-07-11 17:33:29 +02:00
services Merge pull request #1437 from jeenu-arm/ras-remaining 2018-06-22 09:36:59 +01:00
tools_share Make TF UUID RFC 4122 compliant 2018-06-14 14:41:00 +01:00