From: kernel test robot <lkp@intel.com>
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 [thread overview]
Message-ID: <202202061208.0RZ2nMUP-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3743 bytes --]
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: initialize variables that could ignore errors
config: alpha-allmodconfig (https://download.01.org/0day-ci/archive/20220206/202202061208.0RZ2nMUP-lkp(a)intel.com/config)
compiler: alpha-linux-gcc (GCC) 11.2.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=5017356c4292068f63cd07401b92aef72041d55a
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-5.10
git checkout 5017356c4292068f63cd07401b92aef72041d55a
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha SHELL=/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 <lkp@intel.com>
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 '*' (have 'int')
1487 | *val = 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 = kcontrol->private_data;
1448 struct snd_usb_audio *chip = cval->head.mixer->chip;
1449 int idx = 0, validx, ret, val;
1450
1451 validx = cval->control << 8 | 0;
1452
1453 ret = snd_usb_lock_shutdown(chip) ? -EIO : 0;
1454 if (ret)
1455 goto error;
1456
1457 idx = mixer_ctrl_intf(cval->head.mixer) | (cval->head.id << 8);
1458 if (cval->head.mixer->protocol == UAC_VERSION_2) {
1459 struct uac2_connectors_ctl_blk uac2_conn;
1460
1461 ret = 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 = !!uac2_conn.bNrChannels;
1465 } else { /* UAC_VERSION_3 */
1466 struct uac3_insertion_ctl_blk uac3_conn;
1467
1468 ret = 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 = !!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] = 1;
1479 return 0;
1480 }
1481 error:
1482 usb_audio_err(chip,
1483 "cannot get connectors status: req = %#x, wValue = %#x, wIndex = %#x, type = %d\n",
1484 UAC_GET_CUR, validx, idx, cval->val_type);
1485
1486 if (val)
> 1487 *val = 0;
1488
1489 return filter_error(cval, ret);
1490 }
1491
1492 ucontrol->value.integer.value[0] = 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
reply other threads:[~2022-02-06 4:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202202061208.0RZ2nMUP-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.