tree:
https://github.com/thesofproject/linux pr/2703
head: 38a2cdd220ec09c85557ece34c1ef30bc22249b2
commit: 3e9ca86fc706490df577fa5e534e32593470c3c6 [2/5] ASoC: SOF: Refactor ipc_msg_data
config: x86_64-sof-customedconfig-sof-defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/thesofproject/linux/commit/3e9ca86fc706490df577fa5e534...
git remote add linux-sof-driver
https://github.com/thesofproject/linux
git fetch --no-tags linux-sof-driver pr/2703
git checkout 3e9ca86fc706490df577fa5e534e32593470c3c6
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> sound/soc/sof/intel/hda-ipc.c:256:6: error: conflicting types for
'hda_ipc_msg_data'
256 | void hda_ipc_msg_data(struct snd_sof_dev
*sdev,
| ^~~~~~~~~~~~~~~~
In file included from sound/soc/sof/intel/hda-ipc.c:19:
sound/soc/sof/intel/hda.h:570:6: note: previous declaration of
'hda_ipc_msg_data' was here
570 | void hda_ipc_msg_data(struct snd_sof_dev *sdev,
| ^~~~~~~~~~~~~~~~
sound/soc/sof/intel/hda-ipc.c: In function 'hda_ipc_msg_data':
> sound/soc/sof/intel/hda-ipc.c:260:7: error: 'sps'
undeclared (first use in this function)
260 | if (!sps ||
!sdev->stream_box.size) {
| ^~~
sound/soc/sof/intel/hda-ipc.c:260:7: note: each undeclared identifier is reported only
once for each function it appears in
--
> sound/soc/sof/intel/apl.c:53:18: error: initialization of
'void (*)(struct snd_sof_dev *, struct snd_sof_pcm_stream *, void *, size_t)' {aka
'void (*)(struct snd_sof_dev *, struct snd_sof_pcm_stream *, void *, long unsigned
int)'} from incompatible pointer type 'void (*)(struct snd_sof_dev *, struct
snd_pcm_substream *, void *, size_t)' {aka 'void (*)(struct snd_sof_dev *, struct
snd_pcm_substream *, void *, long unsigned int)'} [-Werror=incompatible-pointer-types]
53 | .ipc_msg_data = hda_ipc_msg_data,
| ^~~~~~~~~~~~~~~~
sound/soc/sof/intel/apl.c:53:18: note: (near initialization for
'sof_apl_ops.ipc_msg_data')
cc1: some warnings being treated as errors
--
> sound/soc/sof/intel/cnl.c:258:18: error: initialization of
'void (*)(struct snd_sof_dev *, struct snd_sof_pcm_stream *, void *, size_t)' {aka
'void (*)(struct snd_sof_dev *, struct snd_sof_pcm_stream *, void *, long unsigned
int)'} from incompatible pointer type 'void (*)(struct snd_sof_dev *, struct
snd_pcm_substream *, void *, size_t)' {aka 'void (*)(struct snd_sof_dev *, struct
snd_pcm_substream *, void *, long unsigned int)'} [-Werror=incompatible-pointer-types]
258 | .ipc_msg_data = hda_ipc_msg_data,
| ^~~~~~~~~~~~~~~~
sound/soc/sof/intel/cnl.c:258:18: note: (near initialization for
'sof_cnl_ops.ipc_msg_data')
cc1: some warnings being treated as errors
--
> sound/soc/sof/intel/tgl.c:49:18: error: initialization of
'void (*)(struct snd_sof_dev *, struct snd_sof_pcm_stream *, void *, size_t)' {aka
'void (*)(struct snd_sof_dev *, struct snd_sof_pcm_stream *, void *, long unsigned
int)'} from incompatible pointer type 'void (*)(struct snd_sof_dev *, struct
snd_pcm_substream *, void *, size_t)' {aka 'void (*)(struct snd_sof_dev *, struct
snd_pcm_substream *, void *, long unsigned int)'} [-Werror=incompatible-pointer-types]
49 | .ipc_msg_data = hda_ipc_msg_data,
| ^~~~~~~~~~~~~~~~
sound/soc/sof/intel/tgl.c:49:18: note: (near initialization for
'sof_tgl_ops.ipc_msg_data')
cc1: some warnings being treated as errors
--
> sound/soc/sof/intel/icl.c:52:18: error: initialization of
'void (*)(struct snd_sof_dev *, struct snd_sof_pcm_stream *, void *, size_t)' {aka
'void (*)(struct snd_sof_dev *, struct snd_sof_pcm_stream *, void *, long unsigned
int)'} from incompatible pointer type 'void (*)(struct snd_sof_dev *, struct
snd_pcm_substream *, void *, size_t)' {aka 'void (*)(struct snd_sof_dev *, struct
snd_pcm_substream *, void *, long unsigned int)'} [-Werror=incompatible-pointer-types]
52 | .ipc_msg_data = hda_ipc_msg_data,
| ^~~~~~~~~~~~~~~~
sound/soc/sof/intel/icl.c:52:18: note: (near initialization for
'sof_icl_ops.ipc_msg_data')
cc1: some warnings being treated as errors
vim +/hda_ipc_msg_data +256 sound/soc/sof/intel/hda-ipc.c
6e9cde974863dc9 Liam Girdwood 2019-04-12 255
6e9cde974863dc9 Liam Girdwood 2019-04-12 @256 void hda_ipc_msg_data(struct snd_sof_dev
*sdev,
3e9ca86fc706490 Daniel Baluta 2021-01-18 257 struct snd_sof_pcm_stream
*substream,
6e9cde974863dc9 Liam Girdwood 2019-04-12 258 void *p, size_t sz)
6e9cde974863dc9 Liam Girdwood 2019-04-12 259 {
3e9ca86fc706490 Daniel Baluta 2021-01-18 @260 if (!sps || !sdev->stream_box.size) {
6e9cde974863dc9 Liam Girdwood 2019-04-12 261 sof_mailbox_read(sdev,
sdev->dsp_box.offset, p, sz);
6e9cde974863dc9 Liam Girdwood 2019-04-12 262 } else {
3e9ca86fc706490 Daniel Baluta 2021-01-18 263 struct snd_pcm_substream *substream =
sps->substream;
6e9cde974863dc9 Liam Girdwood 2019-04-12 264 struct hdac_stream *hstream =
substream->runtime->private_data;
6e9cde974863dc9 Liam Girdwood 2019-04-12 265 struct sof_intel_hda_stream *hda_stream;
6e9cde974863dc9 Liam Girdwood 2019-04-12 266
6e9cde974863dc9 Liam Girdwood 2019-04-12 267 hda_stream = container_of(hstream,
6e9cde974863dc9 Liam Girdwood 2019-04-12 268 struct sof_intel_hda_stream,
6e9cde974863dc9 Liam Girdwood 2019-04-12 269 hda_stream.hstream);
6e9cde974863dc9 Liam Girdwood 2019-04-12 270
6e9cde974863dc9 Liam Girdwood 2019-04-12 271 /* The stream might already be closed */
6e9cde974863dc9 Liam Girdwood 2019-04-12 272 if (hstream)
6e9cde974863dc9 Liam Girdwood 2019-04-12 273 sof_mailbox_read(sdev,
hda_stream->stream.posn_offset,
6e9cde974863dc9 Liam Girdwood 2019-04-12 274 p, sz);
6e9cde974863dc9 Liam Girdwood 2019-04-12 275 }
6e9cde974863dc9 Liam Girdwood 2019-04-12 276 }
6e9cde974863dc9 Liam Girdwood 2019-04-12 277
:::::: The code at line 256 was first introduced by commit
:::::: 6e9cde974863dc9d9c6cdb178f625e410c5be3d0 ASoC: SOF: Intel: Add Intel specific HDA
IPC mechanisms.
:::::: TO: Liam Girdwood <liam.r.girdwood(a)linux.intel.com>
:::::: CC: Mark Brown <broonie(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org