diff options
author | Philip Elcan <pelcan@nvidia.com> | 2018-10-03 14:46:57 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2019-02-05 12:04:02 -0500 |
commit | bace52ac7a5ee8683bedba23721900724e3de30a (patch) | |
tree | 1085ef171203233f4498795469f175634c4e85ea /drivers/gpu/nvgpu/os | |
parent | aa84e8a9867fdc72812f2609c142bdd21e5d03de (diff) |
gpu: nvgpu: make tsgid a consistent type
Different units were declaring tsgid as int or u32. This makes everyone
use u32. This change resolves MISRA 10.3 violations for implicit
assingment to different types.
JIRA NVGPU-647
Change-Id: I78660e737acb0dad76dd538e5dd37f4527cf5acd
Signed-off-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1918469
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
(cherry picked from commit f5cac144a04a3ef83762ecb2e3f405196beffd68 in
dev-kernel)
Reviewed-on: https://git-master.nvidia.com/r/2008513
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/os')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/ioctl_dbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c b/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c index 7bb170da..63d33c6b 100644 --- a/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c +++ b/drivers/gpu/nvgpu/os/linux/ioctl_dbg.c | |||
@@ -1713,7 +1713,7 @@ static int nvgpu_profiler_reserve_acquire(struct dbg_session_gk20a *dbg_s, | |||
1713 | /* TSG: check that another channel in the TSG | 1713 | /* TSG: check that another channel in the TSG |
1714 | * doesn't already have the reservation | 1714 | * doesn't already have the reservation |
1715 | */ | 1715 | */ |
1716 | int my_tsgid = my_prof_obj->ch->tsgid; | 1716 | u32 my_tsgid = my_prof_obj->ch->tsgid; |
1717 | 1717 | ||
1718 | nvgpu_list_for_each_entry(prof_obj, &g->profiler_objects, | 1718 | nvgpu_list_for_each_entry(prof_obj, &g->profiler_objects, |
1719 | dbg_profiler_object_data, prof_obj_entry) { | 1719 | dbg_profiler_object_data, prof_obj_entry) { |