]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
memory: tegra: Make terga20_mc_reset_ops static
authorYue Haibing <yuehaibing@huawei.com>
Wed, 10 Apr 2019 14:04:50 +0000 (22:04 +0800)
committerThierry Reding <treding@nvidia.com>
Thu, 11 Apr 2019 08:53:47 +0000 (10:53 +0200)
Fix sparse warning:

drivers/memory/tegra/tegra20.c:277:33: warning:
 symbol 'terga20_mc_reset_ops' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/memory/tegra/tegra20.c

index 7119e532471cc395016cd883cfa427044cdd7a04..b786aec089e76307575dfee54889ce0b49bcb903 100644 (file)
@@ -274,7 +274,7 @@ static int terga20_mc_unblock_dma(struct tegra_mc *mc,
        return 0;
 }
 
-const struct tegra_mc_reset_ops terga20_mc_reset_ops = {
+static const struct tegra_mc_reset_ops terga20_mc_reset_ops = {
        .hotreset_assert = terga20_mc_hotreset_assert,
        .hotreset_deassert = terga20_mc_hotreset_deassert,
        .block_dma = terga20_mc_block_dma,