diff options
author | Philip Elcan <pelcan@nvidia.com> | 2018-10-03 14:52:49 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2019-02-05 12:04:11 -0500 |
commit | ed6e3960903b9e2ba82ded06d1abfe3dec0ac865 (patch) | |
tree | 057462a363a4281ab8508d7ba6737a078878dd90 /drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h | |
parent | bace52ac7a5ee8683bedba23721900724e3de30a (diff) |
gpu: nvgpu: channel: make chid u32
The chid member of the channel_gk20a struct was being used as a unsigned
value. By being declared as an int, it was causing MISRA 10.3 violations
for implicit assignment of different types.
JIRA NVGPU-647
Change-Id: I7477fad6f0c837cf7ede1dba803158b1dda717af
Signed-off-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1918470
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
(cherry picked from commit 1c7bb9b538200a11aa3ef31d72038d8ba820dfca in
dev-kernel)
Reviewed-on: https://git-master.nvidia.com/r/2008514
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h index 50002557..fb5ae1fa 100644 --- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h | |||
@@ -88,7 +88,7 @@ dbg_session_data_from_dbg_s_entry(struct nvgpu_list_node *node) | |||
88 | 88 | ||
89 | struct dbg_session_channel_data { | 89 | struct dbg_session_channel_data { |
90 | int channel_fd; | 90 | int channel_fd; |
91 | int chid; | 91 | u32 chid; |
92 | struct nvgpu_list_node ch_entry; | 92 | struct nvgpu_list_node ch_entry; |
93 | struct dbg_session_data *session_data; | 93 | struct dbg_session_data *session_data; |
94 | int (*unbind_single_channel)(struct dbg_session_gk20a *dbg_s, | 94 | int (*unbind_single_channel)(struct dbg_session_gk20a *dbg_s, |