mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
video: tegra: nvmap: Make function static.
Fix for: Sparse defects Sparse stated that: -symbol 'tegra_vpr1_dev' was not declared. Should it be static? -symbol 'tegra_vpr_cma_dev' was not declared. Should it be static? -symbol 'tegra_generic_cma_dev' was not declared. Should it be static? -symbol 'tegra_vpr_dev' was not declared. Should it be static? -symbol 'tegra_generic_dev' was not declared. Should it be static? Making all the above functions static since it is being used in nvmap_init.c only. Bug 4513982 Change-Id: I4887d994d9ae852a4faa7da735c18d25b393187a Signed-off-by: Surbhi Singh <surbhis@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3295831 Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* SPDX-FileCopyrightText: Copyright (c) 2014-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
* SPDX-FileCopyrightText: Copyright (c) 2014-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) "%s: " fmt, __func__
|
||||
@@ -31,13 +31,13 @@
|
||||
#include <soc/tegra/virt/syscalls.h>
|
||||
#endif
|
||||
|
||||
struct device __weak tegra_generic_dev;
|
||||
static struct device tegra_generic_dev;
|
||||
|
||||
struct device tegra_vpr_dev;
|
||||
struct device tegra_vpr1_dev;
|
||||
static struct device tegra_vpr_dev;
|
||||
static struct device tegra_vpr1_dev;
|
||||
|
||||
struct device __weak tegra_generic_cma_dev;
|
||||
struct device __weak tegra_vpr_cma_dev;
|
||||
static struct device tegra_generic_cma_dev;
|
||||
static struct device tegra_vpr_cma_dev;
|
||||
|
||||
static struct platform_device *pdev;
|
||||
extern ulong nvmap_init_time;
|
||||
|
||||
Reference in New Issue
Block a user