tree:
https://github.com/thesofproject/linux fix/ipc-fw-trace-abstraction
head: b46f552fc27584a020137e4f37ada988ee09b51f
commit: 2ffb46536a872c0089a9c25cf85065486dd99175 [12/14] ASoC: SOF: add path indirection
to each IPC type
config: m68k-allyesconfig
(
https://download.01.org/0day-ci/archive/20211211/202112111021.1WugvJ5w-lk...)
compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/thesofproject/linux/commit/2ffb46536a872c0089a9c25cf85...
git remote add thesofproject
https://github.com/thesofproject/linux
git fetch --no-tags thesofproject plbossart-sound/fix/ipc-fw-trace-abstraction
git checkout 2ffb46536a872c0089a9c25cf85065486dd99175
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir
ARCH=m68k SHELL=/bin/bash sound/soc/sof/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
sound/soc/sof/imx/imx8.c:506:10: error: 'const struct snd_sof_dsp_ops' has no
member named 'send_msg'
506 | .send_msg = imx8_send_msg,
| ^~~~~~~~
sound/soc/sof/imx/imx8.c:506:27: error: initialization of 'const struct
snd_sof_dsp_ipc_ops *' from incompatible pointer type 'int (*)(struct snd_sof_dev
*, struct snd_sof_ipc_msg *)' [-Werror=incompatible-pointer-types]
506 | .send_msg = imx8_send_msg,
| ^~~~~~~~~~~~~
sound/soc/sof/imx/imx8.c:506:27: note: (near initialization for
'sof_imx8_ops.ipc_ops')
sound/soc/sof/imx/imx8.c:507:10: error: 'const struct snd_sof_dsp_ops' has no
member named 'fw_ready'
507 | .fw_ready = sof_fw_ready,
| ^~~~~~~~
sound/soc/sof/imx/imx8.c:507:27: error: initialization of 'const struct
snd_sof_dsp_fw_ops *' from incompatible pointer type 'int (*)(struct snd_sof_dev
*, u32)' {aka 'int (*)(struct snd_sof_dev *, unsigned int)'}
[-Werror=incompatible-pointer-types]
507 | .fw_ready = sof_fw_ready,
| ^~~~~~~~~~~~
sound/soc/sof/imx/imx8.c:507:27: note: (near initialization for
'sof_imx8_ops.fw_ops')
sound/soc/sof/imx/imx8.c:511:10: error: 'const struct snd_sof_dsp_ops' has no
member named 'ipc_msg_data'
511 | .ipc_msg_data = sof_ipc_msg_data,
| ^~~~~~~~~~~~
sound/soc/sof/imx/imx8.c:511:27: error: initialization of 'int (*)(struct
snd_sof_dev *, void *)' from incompatible pointer type 'int (*)(struct snd_sof_dev
*, struct snd_pcm_substream *, void *, size_t)' {aka 'int (*)(struct snd_sof_dev
*, struct snd_pcm_substream *, void *, unsigned int)'}
[-Werror=incompatible-pointer-types]
511 | .ipc_msg_data = sof_ipc_msg_data,
| ^~~~~~~~~~~~~~~~
sound/soc/sof/imx/imx8.c:511:27: note: (near initialization for
'sof_imx8_ops.machine_register')
sound/soc/sof/imx/imx8.c:512:10: error: 'const struct snd_sof_dsp_ops' has no
member named 'set_stream_data_offset'
512 | .set_stream_data_offset = sof_set_stream_data_offset,
| ^~~~~~~~~~~~~~~~~~~~~~
sound/soc/sof/imx/imx8.c:512:35: error: initialization of 'void (*)(struct
snd_sof_dev *, void *)' from incompatible pointer type 'int (*)(struct snd_sof_dev
*, struct snd_pcm_substream *, size_t)' {aka 'int (*)(struct snd_sof_dev *, struct
snd_pcm_substream *, unsigned int)'} [-Werror=incompatible-pointer-types]
512 | .set_stream_data_offset = sof_set_stream_data_offset,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/sof/imx/imx8.c:512:35: note: (near initialization for
'sof_imx8_ops.machine_unregister')
sound/soc/sof/imx/imx8.c:515:10: error: 'const struct snd_sof_dsp_ops' has no
member named 'load_module'
515 | .load_module = snd_sof_parse_module_memcpy,
| ^~~~~~~~~~~
sound/soc/sof/imx/imx8.c:515:27: error: initialization of 'struct snd_soc_acpi_mach
* (*)(struct snd_sof_dev *)' from incompatible pointer type 'int (*)(struct
snd_sof_dev *, struct snd_sof_mod_hdr *)' [-Werror=incompatible-pointer-types]
515 | .load_module = snd_sof_parse_module_memcpy,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/sof/imx/imx8.c:515:27: note: (near initialization for
'sof_imx8_ops.machine_select')
sound/soc/sof/imx/imx8.c:518:10: error: 'const struct snd_sof_dsp_ops' has no
member named 'load_firmware'
518 | .load_firmware = snd_sof_load_firmware_memcpy,
| ^~~~~~~~~~~~~
sound/soc/sof/imx/imx8.c:518:27: warning: initialized field overwritten
[-Woverride-init]
518 | .load_firmware = snd_sof_load_firmware_memcpy,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/sof/imx/imx8.c:518:27: note: (near initialization for
'sof_imx8_ops.get_mailbox_offset')
sound/soc/sof/imx/imx8.c:569:10: error: 'const struct snd_sof_dsp_ops' has no
member named 'send_msg'
569 | .send_msg = imx8_send_msg,
| ^~~~~~~~
sound/soc/sof/imx/imx8.c:569:27: error: initialization of 'const struct
snd_sof_dsp_ipc_ops *' from incompatible pointer type 'int (*)(struct snd_sof_dev
*, struct snd_sof_ipc_msg *)' [-Werror=incompatible-pointer-types]
569 | .send_msg = imx8_send_msg,
| ^~~~~~~~~~~~~
sound/soc/sof/imx/imx8.c:569:27: note: (near initialization for
'sof_imx8x_ops.ipc_ops')
sound/soc/sof/imx/imx8.c:570:10: error: 'const struct snd_sof_dsp_ops' has no
member named 'fw_ready'
570 | .fw_ready = sof_fw_ready,
| ^~~~~~~~
sound/soc/sof/imx/imx8.c:570:27: error: initialization of 'const struct
snd_sof_dsp_fw_ops *' from incompatible pointer type 'int (*)(struct snd_sof_dev
*, u32)' {aka 'int (*)(struct snd_sof_dev *, unsigned int)'}
[-Werror=incompatible-pointer-types]
570 | .fw_ready = sof_fw_ready,
| ^~~~~~~~~~~~
sound/soc/sof/imx/imx8.c:570:27: note: (near initialization for
'sof_imx8x_ops.fw_ops')
sound/soc/sof/imx/imx8.c:574:10: error: 'const struct snd_sof_dsp_ops' has no
member named 'ipc_msg_data'
574 | .ipc_msg_data = sof_ipc_msg_data,
| ^~~~~~~~~~~~
sound/soc/sof/imx/imx8.c:574:27: error: initialization of 'int (*)(struct
snd_sof_dev *, void *)' from incompatible pointer type 'int (*)(struct snd_sof_dev
*, struct snd_pcm_substream *, void *, size_t)' {aka 'int (*)(struct snd_sof_dev
*, struct snd_pcm_substream *, void *, unsigned int)'}
[-Werror=incompatible-pointer-types]
574 | .ipc_msg_data = sof_ipc_msg_data,
| ^~~~~~~~~~~~~~~~
sound/soc/sof/imx/imx8.c:574:27: note: (near initialization for
'sof_imx8x_ops.machine_register')
sound/soc/sof/imx/imx8.c:575:10: error: 'const struct snd_sof_dsp_ops' has no
member named 'set_stream_data_offset'
575 | .set_stream_data_offset = sof_set_stream_data_offset,
| ^~~~~~~~~~~~~~~~~~~~~~
sound/soc/sof/imx/imx8.c:575:35: error: initialization of 'void (*)(struct
snd_sof_dev *, void *)' from incompatible pointer type 'int (*)(struct snd_sof_dev
*, struct snd_pcm_substream *, size_t)' {aka 'int (*)(struct snd_sof_dev *, struct
snd_pcm_substream *, unsigned int)'} [-Werror=incompatible-pointer-types]
575 | .set_stream_data_offset = sof_set_stream_data_offset,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/sof/imx/imx8.c:575:35: note: (near initialization for
'sof_imx8x_ops.machine_unregister')
sound/soc/sof/imx/imx8.c:578:10: error: 'const struct snd_sof_dsp_ops' has no
member named 'load_module'
578 | .load_module = snd_sof_parse_module_memcpy,
| ^~~~~~~~~~~
sound/soc/sof/imx/imx8.c:578:27: error: initialization of 'struct snd_soc_acpi_mach
* (*)(struct snd_sof_dev *)' from incompatible pointer type 'int (*)(struct
snd_sof_dev *, struct snd_sof_mod_hdr *)' [-Werror=incompatible-pointer-types]
578 | .load_module = snd_sof_parse_module_memcpy,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/sof/imx/imx8.c:578:27: note: (near initialization for
'sof_imx8x_ops.machine_select')
sound/soc/sof/imx/imx8.c:581:10: error: 'const struct snd_sof_dsp_ops' has no
member named 'load_firmware'
581 | .load_firmware = snd_sof_load_firmware_memcpy,
| ^~~~~~~~~~~~~
sound/soc/sof/imx/imx8.c:581:27: warning: initialized field overwritten
[-Woverride-init]
581 | .load_firmware = snd_sof_load_firmware_memcpy,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/sof/imx/imx8.c:581:27: note: (near initialization for
'sof_imx8x_ops.get_mailbox_offset')
> sound/soc/sof/imx/imx8.c:615:50: warning: missing braces around
initializer [-Wmissing-braces]
615 | static struct sof_dev_desc
sof_of_imx8qxp_desc = {
| ^
616 | .default_fw_path = "imx/sof",
| { }
617 | .default_tplg_path = "imx/sof-tplg",
| { }
sound/soc/sof/imx/imx8.c:623:49: warning: missing braces around initializer
[-Wmissing-braces]
623 | static struct sof_dev_desc sof_of_imx8qm_desc = {
| ^
624 | .default_fw_path = "imx/sof",
| { }
625 | .default_tplg_path = "imx/sof-tplg",
| { }
cc1: some warnings being treated as errors
--
sound/soc/sof/imx/imx8m.c:431:10: error: 'const struct snd_sof_dsp_ops' has no
member named 'send_msg'
431 | .send_msg = imx8m_send_msg,
| ^~~~~~~~
sound/soc/sof/imx/imx8m.c:431:27: error: initialization of 'const struct
snd_sof_dsp_ipc_ops *' from incompatible pointer type 'int (*)(struct snd_sof_dev
*, struct snd_sof_ipc_msg *)' [-Werror=incompatible-pointer-types]
431 | .send_msg = imx8m_send_msg,
| ^~~~~~~~~~~~~~
sound/soc/sof/imx/imx8m.c:431:27: note: (near initialization for
'sof_imx8m_ops.ipc_ops')
sound/soc/sof/imx/imx8m.c:432:10: error: 'const struct snd_sof_dsp_ops' has no
member named 'fw_ready'
432 | .fw_ready = sof_fw_ready,
| ^~~~~~~~
sound/soc/sof/imx/imx8m.c:432:27: error: initialization of 'const struct
snd_sof_dsp_fw_ops *' from incompatible pointer type 'int (*)(struct snd_sof_dev
*, u32)' {aka 'int (*)(struct snd_sof_dev *, unsigned int)'}
[-Werror=incompatible-pointer-types]
432 | .fw_ready = sof_fw_ready,
| ^~~~~~~~~~~~
sound/soc/sof/imx/imx8m.c:432:27: note: (near initialization for
'sof_imx8m_ops.fw_ops')
sound/soc/sof/imx/imx8m.c:436:10: error: 'const struct snd_sof_dsp_ops' has no
member named 'ipc_msg_data'
436 | .ipc_msg_data = sof_ipc_msg_data,
| ^~~~~~~~~~~~
sound/soc/sof/imx/imx8m.c:436:27: error: initialization of 'int (*)(struct
snd_sof_dev *, void *)' from incompatible pointer type 'int (*)(struct snd_sof_dev
*, struct snd_pcm_substream *, void *, size_t)' {aka 'int (*)(struct snd_sof_dev
*, struct snd_pcm_substream *, void *, unsigned int)'}
[-Werror=incompatible-pointer-types]
436 | .ipc_msg_data = sof_ipc_msg_data,
| ^~~~~~~~~~~~~~~~
sound/soc/sof/imx/imx8m.c:436:27: note: (near initialization for
'sof_imx8m_ops.machine_register')
sound/soc/sof/imx/imx8m.c:437:10: error: 'const struct snd_sof_dsp_ops' has no
member named 'set_stream_data_offset'
437 | .set_stream_data_offset = sof_set_stream_data_offset,
| ^~~~~~~~~~~~~~~~~~~~~~
sound/soc/sof/imx/imx8m.c:437:35: error: initialization of 'void (*)(struct
snd_sof_dev *, void *)' from incompatible pointer type 'int (*)(struct snd_sof_dev
*, struct snd_pcm_substream *, size_t)' {aka 'int (*)(struct snd_sof_dev *, struct
snd_pcm_substream *, unsigned int)'} [-Werror=incompatible-pointer-types]
437 | .set_stream_data_offset = sof_set_stream_data_offset,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/sof/imx/imx8m.c:437:35: note: (near initialization for
'sof_imx8m_ops.machine_unregister')
sound/soc/sof/imx/imx8m.c:440:10: error: 'const struct snd_sof_dsp_ops' has no
member named 'load_module'
440 | .load_module = snd_sof_parse_module_memcpy,
| ^~~~~~~~~~~
sound/soc/sof/imx/imx8m.c:440:27: error: initialization of 'struct
snd_soc_acpi_mach * (*)(struct snd_sof_dev *)' from incompatible pointer type 'int
(*)(struct snd_sof_dev *, struct snd_sof_mod_hdr *)'
[-Werror=incompatible-pointer-types]
440 | .load_module = snd_sof_parse_module_memcpy,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/sof/imx/imx8m.c:440:27: note: (near initialization for
'sof_imx8m_ops.machine_select')
sound/soc/sof/imx/imx8m.c:443:10: error: 'const struct snd_sof_dsp_ops' has no
member named 'load_firmware'
443 | .load_firmware = snd_sof_load_firmware_memcpy,
| ^~~~~~~~~~~~~
sound/soc/sof/imx/imx8m.c:443:27: warning: initialized field overwritten
[-Woverride-init]
443 | .load_firmware = snd_sof_load_firmware_memcpy,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/sof/imx/imx8m.c:443:27: note: (near initialization for
'sof_imx8m_ops.get_mailbox_offset')
> sound/soc/sof/imx/imx8m.c:474:49: warning: missing braces around
initializer [-Wmissing-braces]
474 | static struct sof_dev_desc
sof_of_imx8mp_desc = {
| ^
475 | .default_fw_path = "imx/sof",
| { }
476 | .default_tplg_path = "imx/sof-tplg",
| { }
cc1: some warnings being treated as errors
--
sound/soc/sof/mediatek/mt8195/mt8195.c:413:10: error: 'const struct
snd_sof_dsp_ops' has no member named 'load_module'
413 | .load_module = snd_sof_parse_module_memcpy,
| ^~~~~~~~~~~
sound/soc/sof/mediatek/mt8195/mt8195.c:413:27: error: initialization of 'int
(*)(struct snd_sof_dev *)' from incompatible pointer type 'int (*)(struct
snd_sof_dev *, struct snd_sof_mod_hdr *)' [-Werror=incompatible-pointer-types]
413 | .load_module = snd_sof_parse_module_memcpy,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/sof/mediatek/mt8195/mt8195.c:413:27: note: (near initialization for
'sof_mt8195_ops.get_mailbox_offset')
sound/soc/sof/mediatek/mt8195/mt8195.c:415:10: error: 'const struct
snd_sof_dsp_ops' has no member named 'load_firmware'
415 | .load_firmware = snd_sof_load_firmware_memcpy,
| ^~~~~~~~~~~~~
sound/soc/sof/mediatek/mt8195/mt8195.c:415:27: error: initialization of 'int
(*)(struct snd_sof_dev *, u32)' {aka 'int (*)(struct snd_sof_dev *, unsigned
int)'} from incompatible pointer type 'int (*)(struct snd_sof_dev *)'
[-Werror=incompatible-pointer-types]
415 | .load_firmware = snd_sof_load_firmware_memcpy,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/sof/mediatek/mt8195/mt8195.c:415:27: note: (near initialization for
'sof_mt8195_ops.get_window_offset')
> sound/soc/sof/mediatek/mt8195/mt8195.c:436:55: warning: missing
braces around initializer [-Wmissing-braces]
436 | static const struct
sof_dev_desc sof_of_mt8195_desc = {
| ^
437 | .default_fw_path = "mediatek/sof",
| { }
438 | .default_tplg_path = "mediatek/sof-tplg",
| { }
cc1: some warnings being treated as errors
vim +615 sound/soc/sof/imx/imx8.c
53e3e4042de5be Daniel Baluta 2021-11-23 614
53e3e4042de5be Daniel Baluta 2021-11-23 @615 static struct sof_dev_desc
sof_of_imx8qxp_desc = {
53e3e4042de5be Daniel Baluta 2021-11-23 616 .default_fw_path = "imx/sof",
53e3e4042de5be Daniel Baluta 2021-11-23 617 .default_tplg_path =
"imx/sof-tplg",
53e3e4042de5be Daniel Baluta 2021-11-23 618 .default_fw_filename =
"sof-imx8x.ri",
53e3e4042de5be Daniel Baluta 2021-11-23 619 .nocodec_tplg_filename =
"sof-imx8-nocodec.tplg",
53e3e4042de5be Daniel Baluta 2021-11-23 620 .ops = &sof_imx8x_ops,
53e3e4042de5be Daniel Baluta 2021-11-23 621 };
53e3e4042de5be Daniel Baluta 2021-11-23 622
:::::: The code at line 615 was first introduced by commit
:::::: 53e3e4042de5bee2eb847faa3a70f993683b6048 ASoC: SOF: OF: Avoid reverse module
dependency
:::::: TO: Daniel Baluta <daniel.baluta(a)nxp.com>
:::::: CC: Pierre-Louis Bossart <pierre-louis.bossart(a)linux.intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org