• Arnd Bergmann's avatar
    memory: tegra: Avoid unused function warnings · 2de75899
    Arnd Bergmann authored
    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: 177602b0 ("memory: tegra: Add system sleep support")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Acked-by: default avatarThierry Reding <treding@nvidia.com>
    Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
    2de75899
tegra186.c 27.2 KB