[PATCH v2] ASoC: renesas: Fix non-static global variable

From: songxiebing

Date: Tue Mar 24 2026 - 22:28:19 EST


When using global variables in a .c file only,it is necessary to add
the keyword "static", so here fix the warning.

sparse warnings: (new ones prefixed by >>)
>> sound/soc/renesas/dma-sh7760.c:62:3: sparse: sparse: symbol
'cam_pcm_data' was not declared. Should it be static?

Signed-off-by: songxiebing <songxiebing@xxxxxxxxxx>
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Closes: https://lore.kernel.org/oe-kbuild-all/202412171210.7a4vH3Ew-lkp@xxxxxxxxx/
---
v2:
- Modify title description
---
sound/soc/renesas/dma-sh7760.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sound/soc/renesas/dma-sh7760.c b/sound/soc/renesas/dma-sh7760.c
index c53539482c20..c96907e708ee 100644
--- a/sound/soc/renesas/dma-sh7760.c
+++ b/sound/soc/renesas/dma-sh7760.c
@@ -58,8 +58,9 @@ struct camelot_pcm {
struct snd_pcm_substream *rx_ss;
unsigned long rx_period_size;
unsigned int rx_period;
+};

-} cam_pcm_data[2] = {
+static struct camelot_pcm cam_pcm_data[2] = {
{
.mmio = 0xFE3C0040,
.txid = DMABRGIRQ_A0TXF,
--
2.25.1