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/include | |
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/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/channel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/channel.h b/drivers/gpu/nvgpu/include/nvgpu/channel.h index 8d2d9b44..6cdcb973 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/channel.h +++ b/drivers/gpu/nvgpu/include/nvgpu/channel.h | |||
@@ -242,7 +242,7 @@ struct channel_gk20a { | |||
242 | 242 | ||
243 | nvgpu_atomic_t bound; | 243 | nvgpu_atomic_t bound; |
244 | 244 | ||
245 | int chid; | 245 | u32 chid; |
246 | u32 tsgid; | 246 | u32 tsgid; |
247 | pid_t pid; | 247 | pid_t pid; |
248 | pid_t tgid; | 248 | pid_t tgid; |