mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
MISRA rule 10.1 requires that the operands shall not be of an inappropriate essential type. MISRA rule 10.3 requires that the values of an expression shall not be assigned to an object with narrower essential type or of a different essential type category. MISRA rule 10.4 requires both the operands of an operator in which the usual arithmetic conversions are performed to have the same essential type category. MISRA rule 10.8 requires that the value of a composite expression shall not be cast to a different essential type category or a wider essential type. MISRA rule 21.2 forbids the usage of identifier names which start with an underscore. Fix violations of rules 10.1, 10.3, 10.4, 10.8 and 21.2 in types unit. Jira NVGPU-3300 Change-Id: I3be4218ec8785aa9a116765233273097993baf0d Signed-off-by: ajesh <akv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2117921 Reviewed-by: Philip Elcan <pelcan@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>