All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] memory: tegra: Add compile-test stub for tegra_mc_probe_device()
@ 2021-06-18 11:18 ` Thierry Reding
  0 siblings, 0 replies; 4+ messages in thread
From: Thierry Reding @ 2021-06-18 11:18 UTC (permalink / raw)
  To: Krzysztof Kozlowski; +Cc: linux-arm-kernel, arm, linux-tegra

From: Thierry Reding <treding@nvidia.com>

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>
---
 include/soc/tegra/mc.h | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/include/soc/tegra/mc.h b/include/soc/tegra/mc.h
index e19c2504a14b..1066b1194a5a 100644
--- a/include/soc/tegra/mc.h
+++ b/include/soc/tegra/mc.h
@@ -237,14 +237,19 @@ unsigned int tegra_mc_get_emem_device_count(struct tegra_mc *mc);
 
 #ifdef CONFIG_TEGRA_MC
 struct tegra_mc *devm_tegra_memory_controller_get(struct device *dev);
+int tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev);
 #else
 static inline struct tegra_mc *
 devm_tegra_memory_controller_get(struct device *dev)
 {
 	return ERR_PTR(-ENODEV);
 }
-#endif
 
-int tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev);
+static inline int
+tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev)
+{
+	return -ENODEV;
+}
+#endif
 
 #endif /* __SOC_TEGRA_MC_H__ */
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] memory: tegra: Add compile-test stub for tegra_mc_probe_device()
@ 2021-06-18 11:18 ` Thierry Reding
  0 siblings, 0 replies; 4+ messages in thread
From: Thierry Reding @ 2021-06-18 11:18 UTC (permalink / raw)
  To: Krzysztof Kozlowski; +Cc: linux-arm-kernel, arm, linux-tegra

From: Thierry Reding <treding@nvidia.com>

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>
---
 include/soc/tegra/mc.h | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/include/soc/tegra/mc.h b/include/soc/tegra/mc.h
index e19c2504a14b..1066b1194a5a 100644
--- a/include/soc/tegra/mc.h
+++ b/include/soc/tegra/mc.h
@@ -237,14 +237,19 @@ unsigned int tegra_mc_get_emem_device_count(struct tegra_mc *mc);
 
 #ifdef CONFIG_TEGRA_MC
 struct tegra_mc *devm_tegra_memory_controller_get(struct device *dev);
+int tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev);
 #else
 static inline struct tegra_mc *
 devm_tegra_memory_controller_get(struct device *dev)
 {
 	return ERR_PTR(-ENODEV);
 }
-#endif
 
-int tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev);
+static inline int
+tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev)
+{
+	return -ENODEV;
+}
+#endif
 
 #endif /* __SOC_TEGRA_MC_H__ */
-- 
2.32.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] memory: tegra: Add compile-test stub for tegra_mc_probe_device()
  2021-06-18 11:18 ` Thierry Reding
@ 2021-06-20 19:23   ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2021-06-20 19:23 UTC (permalink / raw)
  To: Thierry Reding; +Cc: Krzysztof Kozlowski, linux-tegra, linux-arm-kernel, arm

On Fri, 18 Jun 2021 13:18:46 +0200, Thierry Reding wrote:
> 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.

Applied, thanks!

[1/1] memory: tegra: Add compile-test stub for tegra_mc_probe_device()
      commit: 47661ee1821fc3a6b5ae07aac37410d6ccada976

Best regards,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] memory: tegra: Add compile-test stub for tegra_mc_probe_device()
@ 2021-06-20 19:23   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2021-06-20 19:23 UTC (permalink / raw)
  To: Thierry Reding; +Cc: Krzysztof Kozlowski, linux-tegra, linux-arm-kernel, arm

On Fri, 18 Jun 2021 13:18:46 +0200, Thierry Reding wrote:
> 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.

Applied, thanks!

[1/1] memory: tegra: Add compile-test stub for tegra_mc_probe_device()
      commit: 47661ee1821fc3a6b5ae07aac37410d6ccada976

Best regards,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-20 19:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-18 11:18 [PATCH] memory: tegra: Add compile-test stub for tegra_mc_probe_device() Thierry Reding
2021-06-18 11:18 ` Thierry Reding
2021-06-20 19:23 ` Krzysztof Kozlowski
2021-06-20 19:23   ` Krzysztof Kozlowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.