mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
Change the global_ctx_buffer_index member in the nvgpu_gr_ctx struct to be an enum nvgpu_gr_global_ctx_index. global_ctx_buffer_index is used as an array of these indicies, but had been declared as an int. This change resolves a number of MISRA Rule 10.3 violations for implicit assignment of objects of different essential or narrower type. In order to use this enum, it is moved out of global_ctx.h into a new header file ctx_common.h that can be used by both ctx.h and global_ctx.h. JIRA NVGPU-2955 Change-Id: I5e399ba3b0821d696aa0b9909d3bc6bbe99d274c Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2075753 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Adeel Raza <araza@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
22 KiB
22 KiB