mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
This adds casts to eliminate MISRA 10.3 violations for implicit assignments of values to different essential types. If values could potentially not fit into the cast, they are checked before the cast to ensure the value does not change. If possible, an error is returned; otherwise, call BUG()/BUG_ON(). Change-Id: I14d0ef74bf3dfe62a8fb04ac4047f46c1bf9fcd4 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1930157 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>