Tegra: fix defects flagged by MISRA Rule 10.3
MISRA Rule 10.3, the value of an expression shall not be assigned to
an object with a narrower essential type or of a different essential
type category.

The essential type of a enum member is anonymous enum, the enum member
should be casted to the right type when using it.

Both UL and ULL suffix equal to uint64_t constant in compiler
aarch64-linux-gnu-gcc, to avoid confusing, only keep U and ULL suffix
in platform code. So in some case, cast a constant to uint32_t is
necessary.

Change-Id: I1aae8cba81ef47481736e7f95f53570de7013187
Signed-off-by: Anthony Zhou <anzhou@nvidia.com>
1 parent e680a39 commit aa64c5fb676853961ff4f4133d8917c1805bd7fd
@Anthony Zhou Anthony Zhou authored on 26 Jul 2017
Varun Wadekar committed on 18 Jan 2019
Showing 16 changed files
View
plat/nvidia/tegra/common/drivers/bpmp/bpmp.c
View
plat/nvidia/tegra/common/drivers/memctrl/memctrl_v2.c
View
plat/nvidia/tegra/common/drivers/smmu/smmu.c
View
plat/nvidia/tegra/common/tegra_sip_calls.c
View
plat/nvidia/tegra/include/drivers/bpmp.h
View
plat/nvidia/tegra/include/drivers/memctrl_v2.h
View
plat/nvidia/tegra/include/drivers/smmu.h
View
plat/nvidia/tegra/include/t186/tegra_def.h
View
plat/nvidia/tegra/include/t210/tegra_def.h
View
plat/nvidia/tegra/soc/t186/drivers/mce/ari.c
View
plat/nvidia/tegra/soc/t186/drivers/mce/mce.c
View
plat/nvidia/tegra/soc/t186/drivers/mce/nvg.c
View
plat/nvidia/tegra/soc/t186/plat_memctrl.c
View
plat/nvidia/tegra/soc/t186/plat_psci_handlers.c
View
plat/nvidia/tegra/soc/t210/drivers/se/se_private.h
View
plat/nvidia/tegra/soc/t210/drivers/se/security_engine.c