plat/arm: Fix ARM_INSTANTIATE_LOCK syntax anomaly
authorJeenu Viswambharan <jeenu.viswambharan@arm.com>
Wed, 23 Aug 2017 13:12:59 +0000 (14:12 +0100)
committerJeenu Viswambharan <jeenu.viswambharan@arm.com>
Tue, 29 Aug 2017 11:02:18 +0000 (12:02 +0100)
commit19583169e248fb62ea5d512d193223aa34d9535b
treec76962016946019b7ee316b22db0afa06c75f356
parentafb33432dfacd6e50588a469e3c84b9c8a8e5fbf
plat/arm: Fix ARM_INSTANTIATE_LOCK syntax anomaly

The current definition of ARM_INSTANTIATE_LOCK macro includes a
semicolon, which means it's omitted where it's used. This is anomalous
for a C statement in global scope.

Fix this by removing semicolon from the definition; and where it's a
NOP, declare a file-scoped variable explicitly tagged as unused to avoid
compiler warning.

No functional changes.

Change-Id: I2c1d92ece4777e272a025011e03b8003f3543335
Signed-off-by: Jeenu Viswambharan <jeenu.viswambharan@arm.com>
include/plat/arm/common/plat_arm.h
plat/arm/board/fvp/drivers/pwrc/fvp_pwrc.c
plat/arm/css/drivers/scp/css_pm_scmi.c
plat/arm/css/drivers/scpi/css_mhu.c