mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
MISRA Rule 10.3 does not allow value of expression to be assigned to an object with a narrower essential type or to a different essential type category. Fix such 10.3 violations in nvlink code by type-casting (when sure there will be no overflows) or by changing the data-type of variables JIRA NVGPU-1921 Change-Id: Iab103a7f0c23cf2a047152cbd76c0b55b3cc947c Signed-off-by: Tejal Kudav <tkudav@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2012811 Reviewed-by: Philip Elcan <pelcan@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>