mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
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:
committed by
mobile promotions
parent
16d98af02b
commit
5a0a711464
@@ -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),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user