All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] memory: renesas-rpc-if: Add missing static keyword
@ 2025-05-07 16:21 Biju Das
  2025-05-07 17:12 ` Geert Uytterhoeven
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Biju Das @ 2025-05-07 16:21 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Biju Das, Geert Uytterhoeven, Prabhakar Mahadev Lad, Biju Das,
	linux-renesas-soc, kernel test robot

Fix the below sparse warnings:
 symbol 'rpcif_impl' was not declared. Should it be static?
 symbol 'xspi_impl' was not declared. Should it be static?

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202505072013.1EqwjtaR-lkp@intel.com/
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
---
 drivers/memory/renesas-rpc-if.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/memory/renesas-rpc-if.c b/drivers/memory/renesas-rpc-if.c
index 4b2e903f2b0d..4a417b693080 100644
--- a/drivers/memory/renesas-rpc-if.c
+++ b/drivers/memory/renesas-rpc-if.c
@@ -1063,7 +1063,7 @@ static void rpcif_remove(struct platform_device *pdev)
 	platform_device_unregister(rpc->vdev);
 }
 
-struct rpcif_impl rpcif_impl = {
+static const struct rpcif_impl rpcif_impl = {
 	.hw_init = rpcif_hw_init_impl,
 	.prepare = rpcif_prepare_impl,
 	.manual_xfer = rpcif_manual_xfer_impl,
@@ -1072,7 +1072,7 @@ struct rpcif_impl rpcif_impl = {
 	.status_mask = RPCIF_CMNSR_TEND,
 };
 
-struct rpcif_impl xspi_impl = {
+static const struct rpcif_impl xspi_impl = {
 	.hw_init = xspi_hw_init_impl,
 	.prepare = xspi_prepare_impl,
 	.manual_xfer = xspi_manual_xfer_impl,
-- 
2.43.0


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

end of thread, other threads:[~2025-05-08 18:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-07 16:21 [PATCH] memory: renesas-rpc-if: Add missing static keyword Biju Das
2025-05-07 17:12 ` Geert Uytterhoeven
2025-05-08  8:57 ` Krzysztof Kozlowski
2025-05-08  9:05   ` Biju Das
2025-05-08  9:10     ` Krzysztof Kozlowski
2025-05-08 18:13       ` Biju Das
2025-05-08  9:25 ` 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.