sound/soc/renesas/dma-sh7760.c:62:3: sparse: sparse: symbol 'cam_pcm_data' was not declared. Should it be static?

From: kernel test robot
Date: Mon Dec 16 2024 - 23:51:49 EST


Hi Lad,

First bad commit (maybe != root cause):

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f44d154d6e3d633d4c49a5d6aed8a0e4684ae25e
commit: c087a94bea49acf34d651f7308506fe462a937b3 ASoC: Rename "sh" to "renesas"
date: 7 weeks ago
config: sh-randconfig-r113-20241217 (https://download.01.org/0day-ci/archive/20241217/202412171210.7a4vH3Ew-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241217/202412171210.7a4vH3Ew-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412171210.7a4vH3Ew-lkp@xxxxxxxxx/

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?

vim +/cam_pcm_data +62 sound/soc/renesas/dma-sh7760.c

aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 48
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 49
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 50 struct camelot_pcm {
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 51 unsigned long mmio; /* DMABRG audio channel control reg MMIO */
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 52 unsigned int txid; /* ID of first DMABRG IRQ for this unit */
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 53
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 54 struct snd_pcm_substream *tx_ss;
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 55 unsigned long tx_period_size;
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 56 unsigned int tx_period;
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 57
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 58 struct snd_pcm_substream *rx_ss;
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 59 unsigned long rx_period_size;
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 60 unsigned int rx_period;
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 61
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 @62 } cam_pcm_data[2] = {
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 63 {
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 64 .mmio = 0xFE3C0040,
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 65 .txid = DMABRGIRQ_A0TXF,
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 66 },
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 67 {
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 68 .mmio = 0xFE3C0060,
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 69 .txid = DMABRGIRQ_A1TXF,
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 70 },
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 71 };
aef3b06ac69783 sound/soc/sh/dma-sh7760.c Manuel Lauss 2007-05-14 72

:::::: The code at line 62 was first introduced by commit
:::::: aef3b06ac69783d6a6d1e4357c62bab46dd16141 [ALSA] SH7760 ASoC support

:::::: TO: Manuel Lauss <mano@xxxxxxxxxxxxxxxxxxxxxxx>
:::::: CC: Jaroslav Kysela <perex@xxxxxxx>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki