From ab4ebfc4f79bedac67948311fb2c2e9ebc8d835c Mon Sep 17 00:00:00 2001 From: Surbhi Singh Date: Wed, 5 Feb 2025 10:09:43 +0000 Subject: [PATCH] video: tegra: nvmap: Make function static. Fix for: Sparse defects Sparse stated that: -symbol 'nvmap_of_ids' was not declared. Should it be static? Making nvmap_of_ids static as it is only used in nvmap_init.c Bug 4513982 Change-Id: Id767ef7796e978c0cc4fee83068b795aeb85d753 Signed-off-by: Surbhi Singh Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3296795 GVS: buildbot_gerritrpt Reviewed-by: svcacv Reviewed-by: Pritesh Raithatha Reviewed-by: N V S Abhishek --- drivers/video/tegra/nvmap/nvmap_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/tegra/nvmap/nvmap_init.c b/drivers/video/tegra/nvmap/nvmap_init.c index 304ae9f1..0dd0fc81 100644 --- a/drivers/video/tegra/nvmap/nvmap_init.c +++ b/drivers/video/tegra/nvmap/nvmap_init.c @@ -42,7 +42,7 @@ static struct device tegra_vpr_cma_dev; static struct platform_device *pdev; extern ulong nvmap_init_time; -const struct of_device_id nvmap_of_ids[] = { +static const struct of_device_id nvmap_of_ids[] = { { .compatible = "nvidia,carveouts" }, { .compatible = "nvidia,carveouts-t18x" }, { .compatible = "nvidia,carveouts-t19x" },