mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: fix MISRA violations in thread unit
MISRA rule 21.2 forbids the usage of identifier names which start with an underscore. Fix the violations of MISRA rule 21.2 in posix thread unit. Jira NVGPU-3139 Change-Id: I2f55ffe23f376fe6247926e449fcbd021d75863d Signed-off-by: ajesh <akv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2107392 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Dinesh T <dt@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
* wrapper takes the int returning nvgpu thread and instead passes that int back
|
||||
* through the void * pointer.
|
||||
*/
|
||||
static void *__nvgpu_posix_thread_wrapper(void *data)
|
||||
static void *nvgpu_posix_thread_wrapper(void *data)
|
||||
{
|
||||
struct nvgpu_posix_thread_data *nvgpu =
|
||||
(struct nvgpu_posix_thread_data *)data;
|
||||
@@ -78,7 +78,7 @@ int nvgpu_thread_create(struct nvgpu_thread *thread,
|
||||
}
|
||||
|
||||
ret = pthread_create(&thread->thread, &attr,
|
||||
__nvgpu_posix_thread_wrapper,
|
||||
nvgpu_posix_thread_wrapper,
|
||||
&thread->nvgpu);
|
||||
if (ret != 0) {
|
||||
(void) pthread_attr_destroy(&attr);
|
||||
@@ -148,7 +148,7 @@ int nvgpu_thread_create_priority(struct nvgpu_thread *thread,
|
||||
}
|
||||
|
||||
ret = pthread_create(&thread->thread, &attr,
|
||||
__nvgpu_posix_thread_wrapper, &thread->nvgpu);
|
||||
nvgpu_posix_thread_wrapper, &thread->nvgpu);
|
||||
if (ret != 0) {
|
||||
(void) pthread_attr_destroy(&attr);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user