All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-sof-driver:pr/3092 2/3] sound/soc/sof/intel/byt.c:252:18: error: initialization of '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)'} from incompatible pointer t...
Date: Sun, 15 Aug 2021 12:10:48 +0800	[thread overview]
Message-ID: <202108151243.bnCDDaoe-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 6277 bytes --]

tree:   https://github.com/thesofproject/linux pr/3092
head:   3f3880d79abe5b45a8a21cd53e2dcd451bfc17ce
commit: 528e0d295d43df85228b384d839f70d190060f03 [2/3] ASoC: SOF: Make Intel IPC stream ops generic
config: x86_64-sof-customedconfig-sof-defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/thesofproject/linux/commit/528e0d295d43df85228b384d839f70d190060f03
        git remote add linux-sof-driver https://github.com/thesofproject/linux
        git fetch --no-tags linux-sof-driver pr/3092
        git checkout 528e0d295d43df85228b384d839f70d190060f03
        # 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@intel.com>

All errors (new ones prefixed by >>):

>> sound/soc/sof/intel/byt.c:252:18: error: initialization of '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)'} 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]
     252 |  .ipc_msg_data = sof_ipc_msg_data,
         |                  ^~~~~~~~~~~~~~~~
   sound/soc/sof/intel/byt.c:252:18: note: (near initialization for 'sof_byt_ops.ipc_msg_data')
   sound/soc/sof/intel/byt.c:334:18: error: initialization of '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)'} 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]
     334 |  .ipc_msg_data = sof_ipc_msg_data,
         |                  ^~~~~~~~~~~~~~~~
   sound/soc/sof/intel/byt.c:334:18: note: (near initialization for 'sof_cht_ops.ipc_msg_data')
   cc1: some warnings being treated as errors
--
>> sound/soc/sof/intel/bdw.c:638:18: error: initialization of '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)'} 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]
     638 |  .ipc_msg_data = sof_ipc_msg_data,
         |                  ^~~~~~~~~~~~~~~~
   sound/soc/sof/intel/bdw.c:638:18: note: (near initialization for 'sof_bdw_ops.ipc_msg_data')
   cc1: some warnings being treated as errors
--
>> sound/soc/sof/intel/pci-tng.c:169:18: error: initialization of '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)'} 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]
     169 |  .ipc_msg_data = sof_ipc_msg_data,
         |                  ^~~~~~~~~~~~~~~~
   sound/soc/sof/intel/pci-tng.c:169:18: note: (near initialization for 'sof_tng_ops.ipc_msg_data')
   cc1: some warnings being treated as errors


vim +252 sound/soc/sof/intel/byt.c

   217	
   218	/* baytrail ops */
   219	static const struct snd_sof_dsp_ops sof_byt_ops = {
   220		/* device init */
   221		.probe		= byt_acpi_probe,
   222		.remove		= byt_remove,
   223	
   224		/* DSP core boot / reset */
   225		.run		= atom_run,
   226		.reset		= atom_reset,
   227	
   228		/* Register IO */
   229		.write		= sof_io_write,
   230		.read		= sof_io_read,
   231		.write64	= sof_io_write64,
   232		.read64		= sof_io_read64,
   233	
   234		/* Block IO */
   235		.block_read	= sof_block_read,
   236		.block_write	= sof_block_write,
   237	
   238		/* Mailbox IO */
   239		.mailbox_read	= sof_mailbox_read,
   240		.mailbox_write	= sof_mailbox_write,
   241	
   242		/* doorbell */
   243		.irq_handler	= atom_irq_handler,
   244		.irq_thread	= atom_irq_thread,
   245	
   246		/* ipc */
   247		.send_msg	= atom_send_msg,
   248		.fw_ready	= sof_fw_ready,
   249		.get_mailbox_offset = atom_get_mailbox_offset,
   250		.get_window_offset = atom_get_window_offset,
   251	
 > 252		.ipc_msg_data	= sof_ipc_msg_data,
   253		.ipc_pcm_params	= sof_ipc_pcm_params,
   254	
   255		/* machine driver */
   256		.machine_select = atom_machine_select,
   257		.machine_register = sof_machine_register,
   258		.machine_unregister = sof_machine_unregister,
   259		.set_mach_params = atom_set_mach_params,
   260	
   261		/* debug */
   262		.debug_map	= byt_debugfs,
   263		.debug_map_count	= ARRAY_SIZE(byt_debugfs),
   264		.dbg_dump	= atom_dump,
   265		.debugfs_add_region_item = snd_sof_debugfs_add_region_item_iomem,
   266	
   267		/* stream callbacks */
   268		.pcm_open	= sof_stream_pcm_open,
   269		.pcm_close	= sof_stream_pcm_close,
   270	
   271		/* module loading */
   272		.load_module	= snd_sof_parse_module_memcpy,
   273	
   274		/*Firmware loading */
   275		.load_firmware	= snd_sof_load_firmware_memcpy,
   276	
   277		/* PM */
   278		.suspend = byt_suspend,
   279		.resume = byt_resume,
   280	
   281		/* DAI drivers */
   282		.drv = atom_dai,
   283		.num_drv = 3, /* we have only 3 SSPs on byt*/
   284	
   285		/* ALSA HW info flags */
   286		.hw_info =	SNDRV_PCM_INFO_MMAP |
   287				SNDRV_PCM_INFO_MMAP_VALID |
   288				SNDRV_PCM_INFO_INTERLEAVED |
   289				SNDRV_PCM_INFO_PAUSE |
   290				SNDRV_PCM_INFO_BATCH,
   291	
   292		.dsp_arch_ops = &sof_xtensa_arch_ops,
   293	};
   294	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36304 bytes --]

                 reply	other threads:[~2021-08-15  4:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202108151243.bnCDDaoe-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.