Tegra186: setup: Fix MISRA Rule 8.4 violation
authorAnthony Zhou <anzhou@nvidia.com>
Fri, 22 Sep 2017 08:52:02 +0000 (16:52 +0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 23 Jan 2019 18:32:18 +0000 (10:32 -0800)
MISRA Rule 8.4, A compatible declaration shall be visible when an
object or function with external linkage is defined.

This patch adds static for local array to fix this defect.

Change-Id: I8231448bf1bc0b1e59611d7645ca983b83d5c8e3
Signed-off-by: Anthony Zhou <anzhou@nvidia.com>
plat/nvidia/tegra/soc/t186/plat_setup.c

index bbd19c1c86e6f556252af2b204ce69b903795ba3..bd6d7647a62db2a63960b1f3f0238c0eacf18651 100644 (file)
@@ -40,7 +40,7 @@
  * the number of power domains at the highest power level.
  *******************************************************************************
  */
-const uint8_t tegra_power_domain_tree_desc[] = {
+static const uint8_t tegra_power_domain_tree_desc[] = {
        /* No of root nodes */
        1,
        /* No of clusters */