Hi Wesley, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on broonie-sound/for-next] [also build test WARNING on tiwai-sound/for-next tiwai-sound/for-linus usb/usb-testing usb/usb-next usb/usb-linus linus/master v6.1 next-20221220] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Wesley-Cheng/ASoC-Add-SOC-USB-APIs-for-adding-an-USB-backend/20221224-073625 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next patch link: https://lore.kernel.org/r/20221223233200.26089-4-quic_wcheng%40quicinc.com patch subject: [RFC PATCH 03/14] ASoC: qcom: Add USB backend ASoC driver for Q6 config: arm-allyesconfig compiler: arm-linux-gnueabi-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/intel-lab-lkp/linux/commit/7a76fe9a5a584f1515b084c5ef29bfa0d2a7a4a9 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Wesley-Cheng/ASoC-Add-SOC-USB-APIs-for-adding-an-USB-backend/20221224-073625 git checkout 7a76fe9a5a584f1515b084c5ef29bfa0d2a7a4a9 # 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=arm olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash sound/soc/qcom/qdsp6/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> sound/soc/qcom/qdsp6/q6usb.c:75:5: warning: no previous prototype for 'q6usb_audio_ports_of_xlate_dai_name' [-Wmissing-prototypes] 75 | int q6usb_audio_ports_of_xlate_dai_name(struct snd_soc_component *component, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> sound/soc/qcom/qdsp6/q6usb.c:117:5: warning: no previous prototype for 'q6usb_alsa_connection_cb' [-Wmissing-prototypes] 117 | int q6usb_alsa_connection_cb(struct snd_soc_usb *usb, int card_idx, | ^~~~~~~~~~~~~~~~~~~~~~~~ vim +/q6usb_audio_ports_of_xlate_dai_name +75 sound/soc/qcom/qdsp6/q6usb.c 74 > 75 int q6usb_audio_ports_of_xlate_dai_name(struct snd_soc_component *component, 76 const struct of_phandle_args *args, 77 const char **dai_name) 78 { 79 int id = args->args[0]; 80 int ret = -EINVAL; 81 int i; 82 83 for (i = 0; i < ARRAY_SIZE(q6usb_be_dais); i++) { 84 if (q6usb_be_dais[i].id == id) { 85 *dai_name = q6usb_be_dais[i].name; 86 ret = 0; 87 break; 88 } 89 } 90 91 return ret; 92 } 93 94 static int q6usb_component_probe(struct snd_soc_component *component) 95 { 96 struct q6usb_port_data *data = dev_get_drvdata(component->dev); 97 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); 98 99 data->usb->component = component; 100 101 snd_soc_dapm_disable_pin(dapm, "USB_RX_BE"); 102 snd_soc_dapm_sync(dapm); 103 104 return 0; 105 } 106 107 static const struct snd_soc_component_driver q6usb_dai_component = { 108 .probe = q6usb_component_probe, 109 .name = "q6usb-dai-component", 110 .dapm_widgets = q6usb_dai_widgets, 111 .num_dapm_widgets = ARRAY_SIZE(q6usb_dai_widgets), 112 .dapm_routes = q6usb_dapm_routes, 113 .num_dapm_routes = ARRAY_SIZE(q6usb_dapm_routes), 114 .of_xlate_dai_name = q6usb_audio_ports_of_xlate_dai_name, 115 }; 116 > 117 int q6usb_alsa_connection_cb(struct snd_soc_usb *usb, int card_idx, 118 int connected) 119 { 120 struct snd_soc_dapm_context *dapm; 121 struct q6usb_port_data *data; 122 123 if (!usb->component) 124 return 0; 125 126 dapm = snd_soc_component_get_dapm(usb->component); 127 data = dev_get_drvdata(usb->component->dev); 128 129 if (connected) { 130 snd_soc_dapm_enable_pin(dapm, "USB_RX_BE"); 131 /* We only track the latest USB headset plugged in */ 132 data->active_idx = card_idx; 133 } else { 134 snd_soc_dapm_disable_pin(dapm, "USB_RX_BE"); 135 } 136 snd_soc_dapm_sync(dapm); 137 138 return 0; 139 } 140 -- 0-DAY CI Kernel Test Service https://01.org/lkp