mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user