Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: renesas: Fix non-static global variable

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@kylinos.cn>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202412171210.7a4vH3Ew-lkp@intel.com/
Link: https://patch.msgid.link/20260325022804.253353-1-songxiebing@kylinos.cn
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

songxiebing and committed by
Mark Brown
e113ed3e 951a4e85

+2 -1
+2 -1
sound/soc/renesas/dma-sh7760.c
··· 58 58 struct snd_pcm_substream *rx_ss; 59 59 unsigned long rx_period_size; 60 60 unsigned int rx_period; 61 + }; 61 62 62 - } cam_pcm_data[2] = { 63 + static struct camelot_pcm cam_pcm_data[2] = { 63 64 { 64 65 .mmio = 0xFE3C0040, 65 66 .txid = DMABRGIRQ_A0TXF,