Skip to content

Commit 47661ee

Browse files
thierryredingkrzk
authored andcommitted
memory: tegra: Add compile-test stub for tegra_mc_probe_device()
The tegra_mc_probe_device() symbol is only available when the TEGRA_MC Kconfig option is enabled. Provide a stub if that's not the case so that the driver can be compile-tested. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://lore.kernel.org/r/20210618111846.1286166-1-thierry.reding@gmail.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
1 parent 2c1bc37 commit 47661ee

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • include/soc/tegra

include/soc/tegra/mc.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,19 @@ unsigned int tegra_mc_get_emem_device_count(struct tegra_mc *mc);
237237

238238
#ifdef CONFIG_TEGRA_MC
239239
struct tegra_mc *devm_tegra_memory_controller_get(struct device *dev);
240+
int tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev);
240241
#else
241242
static inline struct tegra_mc *
242243
devm_tegra_memory_controller_get(struct device *dev)
243244
{
244245
return ERR_PTR(-ENODEV);
245246
}
246-
#endif
247247

248-
int tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev);
248+
static inline int
249+
tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev)
250+
{
251+
return -ENODEV;
252+
}
253+
#endif
249254

250255
#endif /* __SOC_TEGRA_MC_H__ */

0 commit comments

Comments
 (0)