mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: channel MISRA fix for Rule 21.2
Rename _gk20a_channel_get -> nvgpu_channel_get__func gk20a_channel_get -> nvgpu_channel_get _gk20a_channel_put -> nvgpu_channel_put__func gk20a_channel_put -> nvgpu_channel_put trace_gk20a_channel_get -> trace_nvgpu_channel_get trace_gk20a_channel_put -> trace_nvgpu_channel_put JIRA NVGPU-3388 Change-Id: I4e37adddbb5ce14aa18132722719ca2f73f1ba52 Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2114118 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
26d13b3b6b
commit
671f1c8a36
@@ -372,7 +372,7 @@ static int gk20a_init_error_notifier(struct nvgpu_channel *ch,
|
||||
|
||||
/*
|
||||
* This returns the channel with a reference. The caller must
|
||||
* gk20a_channel_put() the ref back after use.
|
||||
* nvgpu_channel_put() the ref back after use.
|
||||
*
|
||||
* NULL is returned if the channel was not found.
|
||||
*/
|
||||
@@ -391,7 +391,7 @@ struct nvgpu_channel *gk20a_get_channel_from_file(int fd)
|
||||
}
|
||||
|
||||
priv = (struct channel_priv *)f->private_data;
|
||||
ch = gk20a_channel_get(priv->c);
|
||||
ch = nvgpu_channel_get(priv->c);
|
||||
fput(f);
|
||||
return ch;
|
||||
}
|
||||
@@ -1090,7 +1090,7 @@ long gk20a_channel_ioctl(struct file *filp,
|
||||
}
|
||||
|
||||
/* take a ref or return timeout if channel refs can't be taken */
|
||||
ch = gk20a_channel_get(ch);
|
||||
ch = nvgpu_channel_get(ch);
|
||||
if (!ch)
|
||||
return -ETIMEDOUT;
|
||||
|
||||
@@ -1398,7 +1398,7 @@ long gk20a_channel_ioctl(struct file *filp,
|
||||
|
||||
nvgpu_mutex_release(&ch->ioctl_lock);
|
||||
|
||||
gk20a_channel_put(ch);
|
||||
nvgpu_channel_put(ch);
|
||||
|
||||
nvgpu_log_fn(g, "end");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user