diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-07-22 11:07:43 +0200 |
---|---|---|
committer | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-07-23 08:25:34 +0200 |
commit | eaf89f1cd38cf7256ab64424fe94014632044d57 (patch) | |
tree | 6f64cdc6cbf14424e104e032f8d02bb6302f478f /drivers/memory/tegra/tegra210-emc-cc-r21021.c | |
parent | Linux 5.14-rc1 (diff) | |
download | linux-eaf89f1cd38cf7256ab64424fe94014632044d57.tar.xz linux-eaf89f1cd38cf7256ab64424fe94014632044d57.zip |
memory: tegra: fix unused-function warning
The tegra186_mc_client_sid_override() is only called from
an #ifdef block:
drivers/memory/tegra/tegra186.c:74:13: error: 'tegra186_mc_client_sid_override' defined but not used [-Werror=unused-function]
74 | static void tegra186_mc_client_sid_override(struct tegra_mc *mc,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Add another #ifdef around the called function.
Fixes: 393d66fd2cac ("memory: tegra: Implement SID override programming")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20210722090748.1157470-1-arnd@kernel.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Diffstat (limited to 'drivers/memory/tegra/tegra210-emc-cc-r21021.c')
0 files changed, 0 insertions, 0 deletions