gpu: nvgpu: fix MISRA 21.2 violation in io.h

MISRA Rule 21.2 prohibits naming functions beginning with double
underscore. So, rename __nvgpu_readl() to nvgpu_readl_impl().

JIRA NVGPU-3361

Change-Id: Ia09a0f57e250fa3934f843671a529ee1b2ac2493
Signed-off-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2118041
GVS: Gerrit_Virtual_Submit
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:
Philip Elcan
2019-05-13 16:06:30 -04:00
committed by mobile promotions
parent 16d98af02b
commit 5a0a711464
7 changed files with 13 additions and 13 deletions

View File

@@ -191,9 +191,9 @@ struct readl_test_args nvgpu_readl_args = {
.fn = nvgpu_readl
};
struct readl_test_args __nvgpu_readl_args = {
.name = "__nvgpu_readl",
.fn = __nvgpu_readl
struct readl_test_args nvgpu_readl_impl_args = {
.name = "nvgpu_readl_impl",
.fn = nvgpu_readl_impl
};
struct readl_test_args nvgpu_bar1_readl_args = {
@@ -333,7 +333,7 @@ struct unit_module_test posix_mockio_tests[] = {
UNIT_TEST(usermode_writel, test_writel,
&nvgpu_usermode_writel_args, 0),
UNIT_TEST(readl, test_readl, &nvgpu_readl_args, 0),
UNIT_TEST(__readl, test_readl, &__nvgpu_readl_args, 0),
UNIT_TEST(readl_impl, test_readl, &nvgpu_readl_impl_args, 0),
UNIT_TEST(bar1_readl, test_readl, &nvgpu_bar1_readl_args, 0),
UNIT_TEST(test_register_space, test_register_space, NULL, 0),
};