Tegra186: fix recursion in included headers (tegra_def.h/platform_def.h)
authorVarun Wadekar <vwadekar@nvidia.com>
Tue, 26 Apr 2016 18:34:54 +0000 (11:34 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 27 Mar 2017 17:17:43 +0000 (10:17 -0700)
This patch fixes the "Recursion in included headers" error flagged by
Coverity.

Fixes coverity errors "31858: Recursion in included headers" and
"31857: Recursion in included headers"

Change-Id: Icf8838434b1808b396e743e47f59adc452546364
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/include/drivers/memctrl_v2.h
plat/nvidia/tegra/include/t186/tegra_def.h
plat/nvidia/tegra/soc/t186/drivers/smmu/smmu.c
plat/nvidia/tegra/soc/t186/plat_trampoline.S

index 04c0e8d17d2b214742ac8692186158f7b43ab658..a7ab6503c137a236637121f1ca7af4fcd49fb3e8 100644 (file)
 
 #ifndef __ASSEMBLY__
 
+#include <sys/types.h>
+
 /*******************************************************************************
  * Structure to hold the transaction override settings to use to override
  * client inputs
index 7f618bdd3097cca976b357e0340cdead1715ff9d..7f85351eb376f47f414a219fefe25cdb2f5f4161 100644 (file)
@@ -31,8 +31,6 @@
 #ifndef __TEGRA_DEF_H__
 #define __TEGRA_DEF_H__
 
-#include <platform_def.h>
-
 /*******************************************************************************
  * These values are used by the PSCI implementation during the `CPU_SUSPEND`
  * and `SYSTEM_SUSPEND` calls as the `state-id` field in the 'power state'
index 7f4589595e1248625bb81403f8a189f069cbbe9a..d1e1804e188ff1aae6ee37a2348b69127f57ed06 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 #include <assert.h>
+#include <bl_common.h>
 #include <debug.h>
 #include <memctrl_v2.h>
 #include <platform_def.h>
index 5e0a9d7e5e01a6c7b35bc3f342b8a092050abebd..7619ed0c9dd640c93863353fe59b3dbb8d1b2ab4 100644 (file)
@@ -30,6 +30,7 @@
 
 #include <arch.h>
 #include <asm_macros.S>
+#include <common_def.h>
 #include <memctrl_v2.h>
 #include <tegra_def.h>