Skip to contentSkip to conversation

sound/soc/mediatek/an7581/an7581-afe-pcm.c:144:30: sparse: sparse: symbol 'an7581_afe_fe_ops' was not declared. Should it be static?

PATCH kernel test robot 1 participant 1 message Sep 24

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   a8c591ed6b672915e0be57843f943a2a723aff40
commit: 4974ffa0d6c28dfaba838a29503c3af02080a8a1 [6936/8910] ASoC: airoha: Add AFE driver for Airoha AN7581
config: parisc-randconfig-r1307-20260924 (https://download.01.org/0day-ci/archive/20260924/[email protected]/config)
compiler: hppa-linux-gcc (GCC) 13.4.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260924/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)

>> sound/soc/mediatek/an7581/an7581-afe-pcm.c:144:30: sparse: sparse: symbol 'an7581_afe_fe_ops' was not declared. Should it be static?
>> sound/soc/mediatek/an7581/an7581-afe-pcm.c:419:14: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *base @@     got void [noderef] __iomem * @@
   sound/soc/mediatek/an7581/an7581-afe-pcm.c:419:14: sparse:     expected void *base
   sound/soc/mediatek/an7581/an7581-afe-pcm.c:419:14: sparse:     got void [noderef] __iomem *
>> sound/soc/mediatek/an7581/an7581-afe-pcm.c:439:42: sparse: sparse: incorrect type in argument 3 (different address spaces) @@     expected void [noderef] __iomem *regs @@     got void *base @@

sound/soc/mediatek/an7581/an7581-afe-pcm.c:439:42: sparse: expected void [noderef] __iomem *regs
sound/soc/mediatek/an7581/an7581-afe-pcm.c:439:42: sparse: got void *base

vim +/an7581_afe_fe_ops +144 sound/soc/mediatek/an7581/an7581-afe-pcm.c

143

 > 144	const struct snd_soc_dai_ops an7581_afe_fe_ops = {

145 .startup = an7581_afe_fe_startup,
146 .shutdown = mtk_afe_fe_shutdown,
147 .hw_params = mtk_afe_fe_hw_params,
148 .hw_free = mtk_afe_fe_hw_free,
149 .prepare = mtk_afe_fe_prepare,
150 .trigger = mtk_afe_fe_trigger,
151 };
152

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