mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
MISRA rule 20.7 requires macro paramaters to be wrapped in parantheses when the parameter expands into an expression. Fix violations of rule 20.7 in atomic unit. MISRA rule 10.3 prohibits the assignment of the value of an expression to an object with narrower essential type or of a different essential type category. Fix violations of rule 10.3 in atomic unit. Jira NVGPU-3296 Change-Id: I087a6d15c5d03885aea29f22853e5bbde7880014 Signed-off-by: ajesh <akv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2116306 GVS: Gerrit_Virtual_Submit Reviewed-by: Philip Elcan <pelcan@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>