[sound:topic/asoc-pcm-addr-fixes 20/24] sound/soc/amd/renoir/acp3x-pdm-dma.c:245:18: error: 'runtime' undeclared
kernel test robot
lkp at intel.com
Sun Aug 1 14:22:51 CEST 2021
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git topic/asoc-pcm-addr-fixes
head: 3ed85d6b39dbdab30d06d6c686739e12c0793cde
commit: c4bb3c6064991e5668115533a840609b5dedfb8e [20/24] ASoC: amd: Fix reference to PCM buffer address
config: x86_64-randconfig-a006-20210728 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/commit/?id=c4bb3c6064991e5668115533a840609b5dedfb8e
git remote add sound https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
git fetch --no-tags sound topic/asoc-pcm-addr-fixes
git checkout c4bb3c6064991e5668115533a840609b5dedfb8e
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash sound/soc/amd/renoir/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
sound/soc/amd/renoir/acp3x-pdm-dma.c: In function 'acp_pdm_dma_hw_params':
>> sound/soc/amd/renoir/acp3x-pdm-dma.c:245:18: error: 'runtime' undeclared (first use in this function)
245 | rtd->dma_addr = runtime->dma_addr;
| ^~~~~~~
sound/soc/amd/renoir/acp3x-pdm-dma.c:245:18: note: each undeclared identifier is reported only once for each function it appears in
vim +/runtime +245 sound/soc/amd/renoir/acp3x-pdm-dma.c
232
233 static int acp_pdm_dma_hw_params(struct snd_soc_component *component,
234 struct snd_pcm_substream *substream,
235 struct snd_pcm_hw_params *params)
236 {
237 struct pdm_stream_instance *rtd;
238 size_t size, period_bytes;
239
240 rtd = substream->runtime->private_data;
241 if (!rtd)
242 return -EINVAL;
243 size = params_buffer_bytes(params);
244 period_bytes = params_period_bytes(params);
> 245 rtd->dma_addr = runtime->dma_addr;
246 rtd->num_pages = (PAGE_ALIGN(size) >> PAGE_SHIFT);
247 config_acp_dma(rtd, substream->stream);
248 init_pdm_ring_buffer(MEM_WINDOW_START, size, period_bytes,
249 rtd->acp_base);
250 return 0;
251 }
252
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 38811 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20210801/09cda2bd/attachment-0001.gz>
More information about the Alsa-devel
mailing list