[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190410140450.31604-1-yuehaibing@huawei.com>
Date: Wed, 10 Apr 2019 22:04:50 +0800
From: Yue Haibing <yuehaibing@...wei.com>
To: <thierry.reding@...il.com>, <jonathanh@...dia.com>,
<digetx@...il.com>, <jroedel@...e.de>
CC: <linux-kernel@...r.kernel.org>, <linux-tegra@...r.kernel.org>,
YueHaibing <yuehaibing@...wei.com>
Subject: [PATCH -next] memory: tegra: Make terga20_mc_reset_ops static
From: YueHaibing <yuehaibing@...wei.com>
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@...wei.com>
Signed-off-by: YueHaibing <yuehaibing@...wei.com>
---
drivers/memory/tegra/tegra20.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/memory/tegra/tegra20.c b/drivers/memory/tegra/tegra20.c
index 7119e53..b786aec 100644
--- a/drivers/memory/tegra/tegra20.c
+++ b/drivers/memory/tegra/tegra20.c
@@ -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,
--
2.7.4
Powered by blists - more mailing lists