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:
ajesh
2019-04-29 16:13:34 +05:30
committed by mobile promotions
parent b368dc48b3
commit 14aaa1f6dc

View File

@@ -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;