All of lore.kernel.org
 help / color / mirror / Atom feed
* [freescale-fslc:6.1-1.0.x-imx 183/9845] sound/soc/sof/intel/hda-common-ops.c:40:27: error: initialization of 'int (*)(struct snd_sof_dev *, struct snd_sof_pcm_stream *, void *, size_t)' {aka 'int (*)(struct snd_sof_dev *, struct snd_sof_pcm_stream *, void *, long unsigned int)'} from incompatib...
@ 2023-04-20  7:51 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-20  7:51 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: oe-kbuild-all

tree:   https://github.com/Freescale/linux-fslc 6.1-1.0.x-imx
head:   897d73a656fe33d0c4549c5de1d07797f99d6871
commit: a5cbb6f360195a5df5a00c415160d0458ed7a0ca [183/9845] ASoC: SOF: Refactor ipc_msg_data to prepare for compress API
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20230420/202304201520.BXtY5NPy-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.1.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/Freescale/linux-fslc/commit/a5cbb6f360195a5df5a00c415160d0458ed7a0ca
        git remote add freescale-fslc https://github.com/Freescale/linux-fslc
        git fetch --no-tags freescale-fslc 6.1-1.0.x-imx
        git checkout a5cbb6f360195a5df5a00c415160d0458ed7a0ca
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch SHELL=/bin/bash drivers/staging/ drivers/video/fbdev/ sound/soc/sof/intel/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304201520.BXtY5NPy-lkp@intel.com/

All errors (new ones prefixed by >>):

>> sound/soc/sof/intel/hda-common-ops.c:40:27: error: initialization of 'int (*)(struct snd_sof_dev *, struct snd_sof_pcm_stream *, void *, size_t)' {aka 'int (*)(struct snd_sof_dev *, struct snd_sof_pcm_stream *, void *, long unsigned int)'} 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 *, long unsigned int)'} [-Werror=incompatible-pointer-types]
      40 |         .ipc_msg_data   = hda_ipc_msg_data,
         |                           ^~~~~~~~~~~~~~~~
   sound/soc/sof/intel/hda-common-ops.c:40:27: note: (near initialization for 'sof_hda_common_ops.ipc_msg_data')
   cc1: some warnings being treated as errors


vim +40 sound/soc/sof/intel/hda-common-ops.c

37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  16  
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  17  struct snd_sof_dsp_ops sof_hda_common_ops = {
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  18  	/* probe/remove/shutdown */
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  19  	.probe		= hda_dsp_probe,
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  20  	.remove		= hda_dsp_remove,
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  21  
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  22  	/* Register IO */
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  23  	.write		= sof_io_write,
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  24  	.read		= sof_io_read,
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  25  	.write64	= sof_io_write64,
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  26  	.read64		= sof_io_read64,
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  27  
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  28  	/* Block IO */
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  29  	.block_read	= sof_block_read,
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  30  	.block_write	= sof_block_write,
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  31  
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  32  	/* Mailbox IO */
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  33  	.mailbox_read	= sof_mailbox_read,
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  34  	.mailbox_write	= sof_mailbox_write,
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  35  
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  36  	/* ipc */
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  37  	.get_mailbox_offset = hda_dsp_ipc_get_mailbox_offset,
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  38  	.get_window_offset = hda_dsp_ipc_get_window_offset,
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14  39  
37e809d5f8a7bfb Pierre-Louis Bossart 2022-04-14 @40  	.ipc_msg_data	= hda_ipc_msg_data,

:::::: The code at line 40 was first introduced by commit
:::::: 37e809d5f8a7bfbf0abbd4666d0b8ad499f12b7f ASoC: SOF: Intel: hda: use common ops across platforms

:::::: TO: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
:::::: CC: Mark Brown <broonie@kernel.org>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-20  7:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-20  7:51 [freescale-fslc:6.1-1.0.x-imx 183/9845] sound/soc/sof/intel/hda-common-ops.c:40:27: error: initialization of 'int (*)(struct snd_sof_dev *, struct snd_sof_pcm_stream *, void *, size_t)' {aka 'int (*)(struct snd_sof_dev *, struct snd_sof_pcm_stream *, void *, long unsigned int)'} from incompatib kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.