mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: fix MISRA 5.7 violations in gr.config unit
Below 5.7 violations are reported in common.gr.config unit : nvgpu/drivers/gpu/nvgpu/common/gr/gr_config.c:628: identifier_reuse: Identifier "sm_info" is already used to represent a type. Fix them by renaming struct sm_info to struct nvgpu_sm_info Jira NVGPU-3225 Change-Id: I26f70a4ed2a5a845e0dc9daeb8fb5474e35d42fb Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2110986 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
fe9f1e9e5c
commit
3b0062bbd9
@@ -833,7 +833,7 @@ static int gk20a_ctrl_vsm_mapping(struct gk20a *g,
|
||||
return -ENOMEM;
|
||||
|
||||
for (i = 0; i < no_of_sm; i++) {
|
||||
struct sm_info *sm_info =
|
||||
struct nvgpu_sm_info *sm_info =
|
||||
nvgpu_gr_config_get_sm_info(gr->config, i);
|
||||
|
||||
vsms_buf[i].gpc_index =
|
||||
|
||||
Reference in New Issue
Block a user