userspace: fixing warnings in NVGPU-RM SWVS

- Below are warnings encountered when we use same function names in
  multiple units

  doxygenfunction: Unable to resolve multiple matches for  function
  “test_setup_env” with arguments () in doxygen xml output.

  doxygenfunction: Unable to resolve multiple matches for  function
  “test_free_env” with arguments () in doxygen xml output.

- Fixing warnings by updating functions with unique names in multiple
  units

JIRA NVGPU-7115

Change-Id: Iaa861040208e101c114f5c556096deb09d08b7fe
Signed-off-by: srajum <srajum@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2601798
(cherry picked from commit f57e408ba2fae4ff9b7c54a441e5cc3e75b0c87c)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2678347
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Shashank Singh <shashsingh@nvidia.com>
Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
srajum
2021-09-28 12:44:14 +05:30
committed by mobile promotions
parent f6fd0af5ed
commit 2316f39f77
7 changed files with 48 additions and 48 deletions

View File

@@ -95,13 +95,13 @@ static void no_return_u32_param(struct gk20a *g, u32 dummy)
/* no op */
}
int test_setup_env(struct unit_module *m,
int init_test_setup_env(struct unit_module *m,
struct gk20a *g, void *args)
{
return UNIT_SUCCESS;
}
int test_free_env(struct unit_module *m,
int init_test_free_env(struct unit_module *m,
struct gk20a *g, void *args)
{
/* Clean up quiesce thread */
@@ -809,7 +809,7 @@ int test_quiesce(struct unit_module *m, struct gk20a *g, void *args)
}
struct unit_module_test init_tests[] = {
UNIT_TEST(init_setup_env, test_setup_env, NULL, 0),
UNIT_TEST(init_setup_env, init_test_setup_env, NULL, 0),
UNIT_TEST(get_litter_value, test_get_litter_value, NULL, 0),
UNIT_TEST(init_can_busy, test_can_busy, NULL, 0),
UNIT_TEST(init_get_put, test_get_put, NULL, 0),
@@ -819,7 +819,7 @@ struct unit_module_test init_tests[] = {
UNIT_TEST(init_poweroff, test_poweroff, NULL, 2),
UNIT_TEST(init_check_gpu_state, test_check_gpu_state, NULL, 2),
UNIT_TEST(init_quiesce, test_quiesce, NULL, 2),
UNIT_TEST(init_free_env, test_free_env, NULL, 0),
UNIT_TEST(init_free_env, init_test_free_env, NULL, 0),
};
UNIT_MODULE(init, init_tests, UNIT_PRIO_NVGPU_TEST);