linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] firmware: tegra: bpmp: drop unused mbox_client_to_bpmp()
@ 2024-08-16 13:57 Krzysztof Kozlowski
  2024-08-16 13:57 ` [PATCH 2/2] firmware: tegra: bpmp: use scoped device node handling to simplify error paths Krzysztof Kozlowski
  2024-08-27 13:57 ` [PATCH 1/2] firmware: tegra: bpmp: drop unused mbox_client_to_bpmp() Thierry Reding
  0 siblings, 2 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-16 13:57 UTC (permalink / raw)
  To: Thierry Reding, Jonathan Hunter, Timo Alho, linux-tegra,
	linux-kernel
  Cc: Krzysztof Kozlowski, stable

mbox_client_to_bpmp() is not used, W=1 builds:

  drivers/firmware/tegra/bpmp.c:28:1: error: unused function 'mbox_client_to_bpmp' [-Werror,-Wunused-function]

Fixes: cdfa358b248e ("firmware: tegra: Refactor BPMP driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/firmware/tegra/bpmp.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/firmware/tegra/bpmp.c b/drivers/firmware/tegra/bpmp.c
index c1590d3aa9cb..c3a1dc344961 100644
--- a/drivers/firmware/tegra/bpmp.c
+++ b/drivers/firmware/tegra/bpmp.c
@@ -24,12 +24,6 @@
 #define MSG_RING	BIT(1)
 #define TAG_SZ		32
 
-static inline struct tegra_bpmp *
-mbox_client_to_bpmp(struct mbox_client *client)
-{
-	return container_of(client, struct tegra_bpmp, mbox.client);
-}
-
 static inline const struct tegra_bpmp_ops *
 channel_to_ops(struct tegra_bpmp_channel *channel)
 {
-- 
2.43.0


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

end of thread, other threads:[~2024-10-01 20:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-16 13:57 [PATCH 1/2] firmware: tegra: bpmp: drop unused mbox_client_to_bpmp() Krzysztof Kozlowski
2024-08-16 13:57 ` [PATCH 2/2] firmware: tegra: bpmp: use scoped device node handling to simplify error paths Krzysztof Kozlowski
2024-10-01 20:34   ` Krzysztof Kozlowski
2024-08-27 13:57 ` [PATCH 1/2] firmware: tegra: bpmp: drop unused mbox_client_to_bpmp() Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).