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-n... base: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next config: i386-randconfig-x079-201821 (attached as .config) compiler: gcc-8 (Debian 8.1.0-3) 8.1.0 reproduce: # save the attached .config to linux build tree make ARCH=i386
All errors (new ones prefixed by >>):
sound/usb/pcm.c:1729:11: error: initialization of 'int (*)(struct snd_pcm_substream *)' from incompatible pointer type 'int (*)(struct snd_pcm_substream *, int)' [-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 of 'int (*)(struct snd_pcm_substream *)' from incompatible pointer type 'int (*)(struct snd_pcm_substream *, int)' [-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 of 'int (*)(struct snd_pcm_substream *)' from incompatible pointer type 'int (*)(struct snd_pcm_substream *, int)' [-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 of 'int (*)(struct snd_pcm_substream *)' from incompatible pointer type 'int (*)(struct snd_pcm_substream *, int)' [-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