[alsa-devel] [PATCH] ALSA: usb-audio: Allow non-vmalloc buffer for PCM buffers

kbuild test robot lkp at intel.com
Tue May 29 07:25:08 CEST 2018


Hi Takashi,

I love your patch! Yet something to improve:

[auto build test ERROR on sound/for-next]
[also build test ERROR on v4.17-rc7]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Takashi-Iwai/ALSA-usb-audio-Allow-non-vmalloc-buffer-for-PCM-buffers/20180529-093537
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

>> sound/usb/pcm.c:1729:11: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .open =  snd_usb_pcm_open,
              ^~~~~~~~~~~~~~~~
   sound/usb/pcm.c:1729:11: note: (near initialization for 'snd_usb_playback_dev_ops.open')
   sound/usb/pcm.c:1730:11: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .close = snd_usb_pcm_close,
              ^~~~~~~~~~~~~~~~~
   sound/usb/pcm.c:1730:11: note: (near initialization for 'snd_usb_playback_dev_ops.close')
   sound/usb/pcm.c:1741:11: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .open =  snd_usb_pcm_open,
              ^~~~~~~~~~~~~~~~
   sound/usb/pcm.c:1741:11: note: (near initialization for 'snd_usb_capture_dev_ops.open')
   sound/usb/pcm.c:1742:11: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .close = snd_usb_pcm_close,
              ^~~~~~~~~~~~~~~~~
   sound/usb/pcm.c:1742:11: note: (near initialization for 'snd_usb_capture_dev_ops.close')
   cc1: some warnings being treated as errors

vim +1729 sound/usb/pcm.c

  1727	
  1728	static const struct snd_pcm_ops snd_usb_playback_dev_ops = {
> 1729		.open =		snd_usb_pcm_open,
  1730		.close =	snd_usb_pcm_close,
  1731		.ioctl =	snd_pcm_lib_ioctl,
  1732		.hw_params =	snd_usb_hw_params,
  1733		.hw_free =	snd_usb_hw_free,
  1734		.prepare =	snd_usb_pcm_prepare,
  1735		.trigger =	snd_usb_substream_playback_trigger,
  1736		.pointer =	snd_usb_pcm_pointer,
  1737		.page =		snd_pcm_sgbuf_ops_page,
  1738	};
  1739	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 53176 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20180529/659c4dfa/attachment-0001.bin>


More information about the Alsa-devel mailing list