From 4827ba84420f2d3cf8ca642f55e4028cd4e4121e Mon Sep 17 00:00:00 2001 From: Anup Mahindre Date: Fri, 26 Jun 2020 15:25:20 +0530 Subject: [PATCH] video: tegra: host: nvdla: Fix MISRA 10.3 violation The constants defined in dla_t19x_fw_version.h have UL suffix which translates to 64 bit unsigned integer on 64 bit architectures and 32 bit unsigned integers on 32 bit architectures such as falcon. To be MISRA rule 10.3 compliant on both, use explicit typecast to uint32_t which should work across both. This change does not fix any violations in here but reflects an update to this file that helps fix 10.3 violation in QNX KMD. Change-Id: I18102f037f15568954dfe47467e20058308b0405 Signed-off-by: Anup Mahindre Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2367282 Reviewed-by: automaticguardword Reviewed-by: Shridhar Rasal Reviewed-by: Amit Sharma (SW-TEGRA) Reviewed-by: Bharat Nihalani Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions --- drivers/video/tegra/host/nvdla/dla_t19x_fw_version.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/tegra/host/nvdla/dla_t19x_fw_version.h b/drivers/video/tegra/host/nvdla/dla_t19x_fw_version.h index 6c97668b..1c90d967 100644 --- a/drivers/video/tegra/host/nvdla/dla_t19x_fw_version.h +++ b/drivers/video/tegra/host/nvdla/dla_t19x_fw_version.h @@ -17,9 +17,9 @@ #ifndef DLA_T19X_FW_VERSION_H #define DLA_T19X_FW_VERSION_H -#define FIRMWARE_T19X_VERSION_MAJOR 0x1UL -#define FIRMWARE_T19X_VERSION_MINOR 0x2UL -#define FIRMWARE_T19X_VERSION_SUBMINOR 0x0UL +#define FIRMWARE_T19X_VERSION_MAJOR ((uint32_t)0x1U) +#define FIRMWARE_T19X_VERSION_MINOR ((uint32_t)0x2U) +#define FIRMWARE_T19X_VERSION_SUBMINOR ((uint32_t)0x0U) static inline uint32_t dla_t19x_fw_version(void) {