memory: tegra: fix unused-function warning
authorArnd Bergmann <arnd@arndb.de>
Thu, 22 Jul 2021 09:07:43 +0000 (11:07 +0200)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Fri, 23 Jul 2021 06:25:34 +0000 (08:25 +0200)
commiteaf89f1cd38cf7256ab64424fe94014632044d57
tree6f64cdc6cbf14424e104e032f8d02bb6302f478f
parente73f0f0ee7541171d89f2e2491130c7771ba58d3
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>
drivers/memory/tegra/tegra186.c