* [linux-next:master 3433/14231] sound/pci/hda/patch_cirrus.c:1668 cs8409_cs42l42_update_volume() warn: assigning (-63) to unsigned variable 'spec->cs42l42_hp_volume[0]'
@ 2021-04-22 6:00 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-22 6:00 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3754 bytes --]
CC: kbuild-all(a)lists.01.org
CC: Linux Memory Management List <linux-mm@kvack.org>
TO: Stefan Binding <sbinding@opensource.cirrus.com>
CC: Takashi Iwai <tiwai@suse.de>
CC: Vitaly Rodionov <vitalyr@opensource.cirrus.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: b74523885a715463203d4ccc3cf8c85952d3701a
commit: fb3447d5842b71ec960da1b8a3ca5ee5f46a5327 [3433/14231] ALSA: hda/cirrus: Add error handling into CS8409 I2C functions
:::::: branch date: 19 hours ago
:::::: commit date: 5 weeks ago
config: riscv-randconfig-m031-20210421 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
New smatch warnings:
sound/pci/hda/patch_cirrus.c:1668 cs8409_cs42l42_update_volume() warn: assigning (-63) to unsigned variable 'spec->cs42l42_hp_volume[0]'
sound/pci/hda/patch_cirrus.c:1680 cs8409_cs42l42_update_volume() warn: assigning (-97) to unsigned variable 'spec->cs42l42_hs_mic_volume[0]'
Old smatch warnings:
sound/pci/hda/patch_cirrus.c:1674 cs8409_cs42l42_update_volume() warn: assigning (-63) to unsigned variable 'spec->cs42l42_hp_volume[1]'
vim +1668 sound/pci/hda/patch_cirrus.c
b9dd23bb03fe24 Stefan Binding 2021-03-06 1656
b9dd23bb03fe24 Stefan Binding 2021-03-06 1657 static void cs8409_cs42l42_update_volume(struct hda_codec *codec)
b9dd23bb03fe24 Stefan Binding 2021-03-06 1658 {
b9dd23bb03fe24 Stefan Binding 2021-03-06 1659 struct cs_spec *spec = codec->spec;
fb3447d5842b71 Stefan Binding 2021-03-15 1660 int data;
b9dd23bb03fe24 Stefan Binding 2021-03-06 1661
b9dd23bb03fe24 Stefan Binding 2021-03-06 1662 mutex_lock(&spec->cs8409_i2c_mux);
fb3447d5842b71 Stefan Binding 2021-03-15 1663 data = cs8409_i2c_read(codec, CS42L42_I2C_ADDR,
fb3447d5842b71 Stefan Binding 2021-03-15 1664 CS8409_CS42L42_REG_HS_VOLUME_CHA, 1);
fb3447d5842b71 Stefan Binding 2021-03-15 1665 if (data >= 0)
fb3447d5842b71 Stefan Binding 2021-03-15 1666 spec->cs42l42_hp_volume[0] = -data;
fb3447d5842b71 Stefan Binding 2021-03-15 1667 else
fb3447d5842b71 Stefan Binding 2021-03-15 @1668 spec->cs42l42_hp_volume[0] = CS8409_CS42L42_HP_VOL_REAL_MIN;
fb3447d5842b71 Stefan Binding 2021-03-15 1669 data = cs8409_i2c_read(codec, CS42L42_I2C_ADDR,
fb3447d5842b71 Stefan Binding 2021-03-15 1670 CS8409_CS42L42_REG_HS_VOLUME_CHB, 1);
fb3447d5842b71 Stefan Binding 2021-03-15 1671 if (data >= 0)
fb3447d5842b71 Stefan Binding 2021-03-15 1672 spec->cs42l42_hp_volume[1] = -data;
fb3447d5842b71 Stefan Binding 2021-03-15 1673 else
fb3447d5842b71 Stefan Binding 2021-03-15 1674 spec->cs42l42_hp_volume[1] = CS8409_CS42L42_HP_VOL_REAL_MIN;
fb3447d5842b71 Stefan Binding 2021-03-15 1675 data = cs8409_i2c_read(codec, CS42L42_I2C_ADDR,
fb3447d5842b71 Stefan Binding 2021-03-15 1676 CS8409_CS42L42_REG_AMIC_VOLUME, 1);
fb3447d5842b71 Stefan Binding 2021-03-15 1677 if (data >= 0)
fb3447d5842b71 Stefan Binding 2021-03-15 1678 spec->cs42l42_hs_mic_volume[0] = -data;
fb3447d5842b71 Stefan Binding 2021-03-15 1679 else
fb3447d5842b71 Stefan Binding 2021-03-15 @1680 spec->cs42l42_hs_mic_volume[0] = CS8409_CS42L42_AMIC_VOL_REAL_MIN;
b9dd23bb03fe24 Stefan Binding 2021-03-06 1681 mutex_unlock(&spec->cs8409_i2c_mux);
b9dd23bb03fe24 Stefan Binding 2021-03-06 1682 spec->cs42l42_volume_init = 1;
b9dd23bb03fe24 Stefan Binding 2021-03-06 1683 }
b9dd23bb03fe24 Stefan Binding 2021-03-06 1684
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 40602 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-22 6:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22 6:00 [linux-next:master 3433/14231] sound/pci/hda/patch_cirrus.c:1668 cs8409_cs42l42_update_volume() warn: assigning (-63) to unsigned variable 'spec->cs42l42_hp_volume[0]' kernel test robot
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.