From 14aaa1f6dceb86a3f9d64e96974e345fe5df5364 Mon Sep 17 00:00:00 2001 From: ajesh Date: Mon, 29 Apr 2019 16:13:34 +0530 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/2107392 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Dinesh T Reviewed-by: Deepak Nibade Reviewed-by: Vaibhav Kachore Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/os/posix/thread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/nvgpu/os/posix/thread.c b/drivers/gpu/nvgpu/os/posix/thread.c index d5bfa5590..6505dc64b 100644 --- a/drivers/gpu/nvgpu/os/posix/thread.c +++ b/drivers/gpu/nvgpu/os/posix/thread.c @@ -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;