Skip to content

Commit 2de7589

Browse files
arndbthierryreding
authored andcommitted
memory: tegra: Avoid unused function warnings
The suspend/resume functions have no callers depending on configuration, so they must be marked __maybe_unused to avoid these harmless warnings: drivers/memory/tegra/tegra186.c:1578:12: error: 'tegra186_mc_resume' defined but not used [-Werror=unused-function] 1578 | static int tegra186_mc_resume(struct device *dev) | ^~~~~~~~~~~~~~~~~~ drivers/memory/tegra/tegra186.c:1573:12: error: 'tegra186_mc_suspend' defined but not used [-Werror=unused-function] 1573 | static int tegra186_mc_suspend(struct device *dev) | ^~~~~~~~~~~~~~~~~~~ Fixes: 177602b ("memory: tegra: Add system sleep support") Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Thierry Reding <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 1b93fad commit 2de7589

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/memory/tegra/tegra186.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,12 +1570,12 @@ static const struct of_device_id tegra186_mc_of_match[] = {
15701570
};
15711571
MODULE_DEVICE_TABLE(of, tegra186_mc_of_match);
15721572

1573-
static int tegra186_mc_suspend(struct device *dev)
1573+
static int __maybe_unused tegra186_mc_suspend(struct device *dev)
15741574
{
15751575
return 0;
15761576
}
15771577

1578-
static int tegra186_mc_resume(struct device *dev)
1578+
static int __maybe_unused tegra186_mc_resume(struct device *dev)
15791579
{
15801580
struct tegra186_mc *mc = dev_get_drvdata(dev);
15811581

0 commit comments

Comments
 (0)