Files
linux-nvgpu/drivers/gpu/nvgpu/hal/sync
srajum 41a1212744 gpu: nvgpu: fixing MISRA 10.1 and 10.3 violations
- MISRA Rule 10.1
  The expression "g->syncpt_size" of non-boolean essential type is
  being interpreted as a boolean value for the operator "? :".

- MISRA Rule 10.3
  Implicit conversion of "(tmp <= 4294967295UL) ? tmp : 4294967295UL"
  from essential type "unsigned 64-bit int" to different or narrower
  essential type "unsigned 32-bit int"

JIRA NVGPU-6536

Change-Id: I56f01a13f3a8877317213d6fc846330ff3dfd700
Signed-off-by: srajum <srajum@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2582289
(cherry picked from commit 4a51cad9b016a17ddec00cd6b35ec6c931a3c5c4)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2674865
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
Reviewed-by: Rajesh Devaraj <rdevaraj@nvidia.com>
Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-03-01 06:07:53 -08:00
..