tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-6.0 head: f49bdcc706dcb8cf28d503fe99c12554abc58cc8 commit: b7c2a85dca6b25a5954948051360460ee574dc57 [53/159] ASoC: Intel: Drop hdac_ext usage for codec device creation config: xtensa-randconfig-r015-20221127 compiler: xtensa-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://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/commit/?id=b7c2a85dca6b25a5954948051360460ee574dc57 git remote add sashal-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git git fetch --no-tags sashal-stable pending-6.0 git checkout b7c2a85dca6b25a5954948051360460ee574dc57 # 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=xtensa SHELL=/bin/bash sound/soc/sof/intel/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): sound/soc/sof/intel/hda-codec.c: In function 'hda_codec_probe': >> sound/soc/sof/intel/hda-codec.c:216:17: error: too few arguments to function 'hda_codec_device_init' 216 | codec = hda_codec_device_init(&hbus->core, address); | ^~~~~~~~~~~~~~~~~~~~~ sound/soc/sof/intel/hda-codec.c:117:26: note: declared here 117 | static struct hda_codec *hda_codec_device_init(struct hdac_bus *bus, int addr, int type) | ^~~~~~~~~~~~~~~~~~~~~ vim +/hda_codec_device_init +216 sound/soc/sof/intel/hda-codec.c 140 141 /* probe individual codec */ 142 static int hda_codec_probe(struct snd_sof_dev *sdev, int address, 143 bool hda_codec_use_common_hdmi) 144 { 145 #if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC) 146 struct hdac_hda_priv *hda_priv; 147 int type = HDA_DEV_LEGACY; 148 #endif 149 struct hda_bus *hbus = sof_to_hbus(sdev); 150 struct hda_codec *codec; 151 u32 hda_cmd = (address << 28) | (AC_NODE_ROOT << 20) | 152 (AC_VERB_PARAMETERS << 8) | AC_PAR_VENDOR_ID; 153 u32 resp = -1; 154 int ret, retry = 0; 155 156 do { 157 mutex_lock(&hbus->core.cmd_mutex); 158 snd_hdac_bus_send_cmd(&hbus->core, hda_cmd); 159 snd_hdac_bus_get_response(&hbus->core, address, &resp); 160 mutex_unlock(&hbus->core.cmd_mutex); 161 } while (resp == -1 && retry++ < CODEC_PROBE_RETRIES); 162 163 if (resp == -1) 164 return -EIO; 165 dev_dbg(sdev->dev, "HDA codec #%d probed OK: response: %x\n", 166 address, resp); 167 168 #if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC) 169 hda_priv = devm_kzalloc(sdev->dev, sizeof(*hda_priv), GFP_KERNEL); 170 if (!hda_priv) 171 return -ENOMEM; 172 173 /* only probe ASoC codec drivers for HDAC-HDMI */ 174 if (!hda_codec_use_common_hdmi && (resp & 0xFFFF0000) == IDISP_VID_INTEL) 175 type = HDA_DEV_ASOC; 176 177 codec = hda_codec_device_init(&hbus->core, address, type); 178 ret = PTR_ERR_OR_ZERO(codec); 179 if (ret < 0) 180 return ret; 181 182 hda_priv->codec = codec; 183 dev_set_drvdata(&codec->core.dev, hda_priv); 184 185 if ((resp & 0xFFFF0000) == IDISP_VID_INTEL) { 186 if (!hbus->core.audio_component) { 187 dev_dbg(sdev->dev, 188 "iDisp hw present but no driver\n"); 189 ret = -ENOENT; 190 goto out; 191 } 192 hda_priv->need_display_power = true; 193 } 194 195 if (is_generic_config(hbus)) 196 codec->probe_id = HDA_CODEC_ID_GENERIC; 197 else 198 codec->probe_id = 0; 199 200 if (type == HDA_DEV_LEGACY) { 201 ret = hda_codec_load_module(codec); 202 /* 203 * handle ret==0 (no driver bound) as an error, but pass 204 * other return codes without modification 205 */ 206 if (ret == 0) 207 ret = -ENOENT; 208 } 209 210 out: 211 if (ret < 0) { 212 snd_hdac_device_unregister(&codec->core); 213 put_device(&codec->core.dev); 214 } 215 #else > 216 codec = hda_codec_device_init(&hbus->core, address); 217 ret = PTR_ERR_OR_ZERO(codec); 218 #endif 219 220 return ret; 221 } 222 -- 0-DAY CI Kernel Test Service https://01.org/lkp