video: tegra: nvmap: Make function static

Fix for: Sparse defects

Sparse defect stated that "symbol 'debug_free_size_fops' was not declared. Should it be static?"

-Since carveouts also have free_size debugfs and it is directly using
 the field from heap struct.
-So to make free_size_fops static we are changing DEBUGFS_OPEN_FOPS to DEBUGFS_OPEN_FOPS_STATIC

Bug 4513982

Change-Id: I296bf95a421a9c751cc11266a896d2806bfc82b4
Signed-off-by: Surbhi Singh <surbhis@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3205061
Reviewed-by: Ketan Patil <ketanp@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
This commit is contained in:
Surbhi Singh
2024-08-30 08:55:37 +00:00
committed by Jon Hunter
parent bba351803a
commit 8a471e9088

View File

@@ -877,7 +877,7 @@ static int nvmap_debug_free_size_show(struct seq_file *s, void *unused)
seq_printf(s, "Max allocatable IOVMM memory: %lu bytes\n", free_mem);
return 0;
}
DEBUGFS_OPEN_FOPS(free_size);
DEBUGFS_OPEN_FOPS_STATIC(free_size);
#ifdef NVMAP_CONFIG_DEBUG_MAPS
static int nvmap_debug_device_list_show(struct seq_file *s, void *unused)