From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1692657132900841760==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [sashal-stable:pending-5.10 34/62] sound/usb/mixer.c:1487:25: error: invalid type argument of unary '*' (have 'int') Date: Sun, 06 Feb 2022 12:54:07 +0800 Message-ID: <202202061208.0RZ2nMUP-lkp@intel.com> List-Id: --===============1692657132900841760== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable= .git pending-5.10 head: 0750b6660a58a295e2b9e8cb1f3b39be39c83625 commit: 5017356c4292068f63cd07401b92aef72041d55a [34/62] ALSA: usb-audio: i= nitialize variables that could ignore errors config: alpha-allmodconfig (https://download.01.org/0day-ci/archive/2022020= 6/202202061208.0RZ2nMUP-lkp(a)intel.com/config) compiler: alpha-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 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-stab= le.git/commit/?id=3D5017356c4292068f63cd07401b92aef72041d55a git remote add sashal-stable https://git.kernel.org/pub/scm/linux/k= ernel/git/sashal/linux-stable.git git fetch --no-tags sashal-stable pending-5.10 git checkout 5017356c4292068f63cd07401b92aef72041d55a # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dalpha SHELL=3D/bin/bash drivers/net/ethernet/stmicro/= stmmac/ sound/usb/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): sound/usb/mixer.c: In function 'mixer_ctl_connector_get': >> sound/usb/mixer.c:1487:25: error: invalid type argument of unary '*' (ha= ve 'int') 1487 | *val =3D 0; | ^~~~ vim +1487 sound/usb/mixer.c 1442 = 1443 /* get the connectors status and report it as boolean type */ 1444 static int mixer_ctl_connector_get(struct snd_kcontrol *kcontrol, 1445 struct snd_ctl_elem_value *ucontrol) 1446 { 1447 struct usb_mixer_elem_info *cval =3D kcontrol->private_data; 1448 struct snd_usb_audio *chip =3D cval->head.mixer->chip; 1449 int idx =3D 0, validx, ret, val; 1450 = 1451 validx =3D cval->control << 8 | 0; 1452 = 1453 ret =3D snd_usb_lock_shutdown(chip) ? -EIO : 0; 1454 if (ret) 1455 goto error; 1456 = 1457 idx =3D mixer_ctrl_intf(cval->head.mixer) | (cval->head.id << 8); 1458 if (cval->head.mixer->protocol =3D=3D UAC_VERSION_2) { 1459 struct uac2_connectors_ctl_blk uac2_conn; 1460 = 1461 ret =3D snd_usb_ctl_msg(chip->dev, usb_rcvctrlpipe(chip->dev, 0), = UAC2_CS_CUR, 1462 USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_IN, 1463 validx, idx, &uac2_conn, sizeof(uac2_conn)); 1464 val =3D !!uac2_conn.bNrChannels; 1465 } else { /* UAC_VERSION_3 */ 1466 struct uac3_insertion_ctl_blk uac3_conn; 1467 = 1468 ret =3D snd_usb_ctl_msg(chip->dev, usb_rcvctrlpipe(chip->dev, 0), = UAC2_CS_CUR, 1469 USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_IN, 1470 validx, idx, &uac3_conn, sizeof(uac3_conn)); 1471 val =3D !!uac3_conn.bmConInserted; 1472 } 1473 = 1474 snd_usb_unlock_shutdown(chip); 1475 = 1476 if (ret < 0) { 1477 if (strstr(kcontrol->id.name, "Speaker")) { 1478 ucontrol->value.integer.value[0] =3D 1; 1479 return 0; 1480 } 1481 error: 1482 usb_audio_err(chip, 1483 "cannot get connectors status: req =3D %#x, wValue =3D %#x, wInde= x =3D %#x, type =3D %d\n", 1484 UAC_GET_CUR, validx, idx, cval->val_type); 1485 = 1486 if (val) > 1487 *val =3D 0; 1488 = 1489 return filter_error(cval, ret); 1490 } 1491 = 1492 ucontrol->value.integer.value[0] =3D val; 1493 return 0; 1494 } 1495 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============1692657132900841760==--