* [asoc:for-5.12 107/117] sound/soc/codecs/lpass-rx-macro.c:1476 rx_macro_int_dem_inp_mux_put() error: uninitialized symbol 'look_ahead_dly_reg'.
@ 2021-02-15 0:02 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-02-15 0:02 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 4171 bytes --]
CC: kbuild-all(a)lists.01.org
TO: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
CC: Mark Brown <broonie@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.12
head: debc71f26cdbd45798c63b0dcdabdea93d2f6870
commit: 4f692926f562ff48abfcca6b16f36ff8d57473b6 [107/117] ASoC: codecs: lpass-rx-macro: add dapm widgets and route
:::::: branch date: 2 days ago
:::::: commit date: 3 days ago
config: x86_64-randconfig-m001-20210215 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 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/soc/codecs/lpass-rx-macro.c:1476 rx_macro_int_dem_inp_mux_put() error: uninitialized symbol 'look_ahead_dly_reg'.
sound/soc/codecs/lpass-rx-macro.c:2187 rx_macro_hd2_control() error: uninitialized symbol 'hd2_enable_reg'.
sound/soc/codecs/lpass-rx-macro.c:2188 rx_macro_hd2_control() error: uninitialized symbol 'hd2_scale_reg'.
sound/soc/codecs/lpass-rx-macro.c:2655 rx_macro_enable_echo() error: uninitialized symbol 'ec_tx'.
Old smatch warnings:
sound/soc/codecs/lpass-rx-macro.c:1480 rx_macro_int_dem_inp_mux_put() error: uninitialized symbol 'look_ahead_dly_reg'.
sound/soc/codecs/lpass-rx-macro.c:2197 rx_macro_hd2_control() error: uninitialized symbol 'hd2_scale_reg'.
vim +/look_ahead_dly_reg +1476 sound/soc/codecs/lpass-rx-macro.c
af3d54b99764f0 Srinivas Kandagatla 2021-02-11 1457
4f692926f562ff Srinivas Kandagatla 2021-02-11 1458 static int rx_macro_int_dem_inp_mux_put(struct snd_kcontrol *kcontrol,
4f692926f562ff Srinivas Kandagatla 2021-02-11 1459 struct snd_ctl_elem_value *ucontrol)
4f692926f562ff Srinivas Kandagatla 2021-02-11 1460 {
4f692926f562ff Srinivas Kandagatla 2021-02-11 1461 struct snd_soc_dapm_widget *widget = snd_soc_dapm_kcontrol_widget(kcontrol);
4f692926f562ff Srinivas Kandagatla 2021-02-11 1462 struct snd_soc_component *component = snd_soc_dapm_to_component(widget->dapm);
4f692926f562ff Srinivas Kandagatla 2021-02-11 1463 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
4f692926f562ff Srinivas Kandagatla 2021-02-11 1464 unsigned short look_ahead_dly_reg;
4f692926f562ff Srinivas Kandagatla 2021-02-11 1465 unsigned int val;
4f692926f562ff Srinivas Kandagatla 2021-02-11 1466
4f692926f562ff Srinivas Kandagatla 2021-02-11 1467 val = ucontrol->value.enumerated.item[0];
4f692926f562ff Srinivas Kandagatla 2021-02-11 1468
4f692926f562ff Srinivas Kandagatla 2021-02-11 1469 if (e->reg == CDC_RX_RX0_RX_PATH_CFG1)
4f692926f562ff Srinivas Kandagatla 2021-02-11 1470 look_ahead_dly_reg = CDC_RX_RX0_RX_PATH_CFG0;
4f692926f562ff Srinivas Kandagatla 2021-02-11 1471 else if (e->reg == CDC_RX_RX1_RX_PATH_CFG1)
4f692926f562ff Srinivas Kandagatla 2021-02-11 1472 look_ahead_dly_reg = CDC_RX_RX1_RX_PATH_CFG0;
4f692926f562ff Srinivas Kandagatla 2021-02-11 1473
4f692926f562ff Srinivas Kandagatla 2021-02-11 1474 /* Set Look Ahead Delay */
4f692926f562ff Srinivas Kandagatla 2021-02-11 1475 if (val)
4f692926f562ff Srinivas Kandagatla 2021-02-11 @1476 snd_soc_component_update_bits(component, look_ahead_dly_reg,
4f692926f562ff Srinivas Kandagatla 2021-02-11 1477 CDC_RX_DLY_ZN_EN_MASK,
4f692926f562ff Srinivas Kandagatla 2021-02-11 1478 CDC_RX_DLY_ZN_ENABLE);
4f692926f562ff Srinivas Kandagatla 2021-02-11 1479 else
4f692926f562ff Srinivas Kandagatla 2021-02-11 1480 snd_soc_component_update_bits(component, look_ahead_dly_reg,
4f692926f562ff Srinivas Kandagatla 2021-02-11 1481 CDC_RX_DLY_ZN_EN_MASK, 0);
4f692926f562ff Srinivas Kandagatla 2021-02-11 1482 /* Set DEM INP Select */
4f692926f562ff Srinivas Kandagatla 2021-02-11 1483 return snd_soc_dapm_put_enum_double(kcontrol, ucontrol);
4f692926f562ff Srinivas Kandagatla 2021-02-11 1484 }
4f692926f562ff Srinivas Kandagatla 2021-02-11 1485
---
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: 30989 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [asoc:for-5.12 107/117] sound/soc/codecs/lpass-rx-macro.c:1476 rx_macro_int_dem_inp_mux_put() error: uninitialized symbol 'look_ahead_dly_reg'.
@ 2021-02-15 13:42 ` Dan Carpenter
0 siblings, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2021-02-15 13:42 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3904 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.12
head: debc71f26cdbd45798c63b0dcdabdea93d2f6870
commit: 4f692926f562ff48abfcca6b16f36ff8d57473b6 [107/117] ASoC: codecs: lpass-rx-macro: add dapm widgets and route
config: x86_64-randconfig-m001-20210215 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 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/soc/codecs/lpass-rx-macro.c:1476 rx_macro_int_dem_inp_mux_put() error: uninitialized symbol 'look_ahead_dly_reg'.
sound/soc/codecs/lpass-rx-macro.c:2187 rx_macro_hd2_control() error: uninitialized symbol 'hd2_enable_reg'.
sound/soc/codecs/lpass-rx-macro.c:2188 rx_macro_hd2_control() error: uninitialized symbol 'hd2_scale_reg'.
sound/soc/codecs/lpass-rx-macro.c:2655 rx_macro_enable_echo() error: uninitialized symbol 'ec_tx'.
Old smatch warnings:
sound/soc/codecs/lpass-rx-macro.c:1480 rx_macro_int_dem_inp_mux_put() error: uninitialized symbol 'look_ahead_dly_reg'.
sound/soc/codecs/lpass-rx-macro.c:2197 rx_macro_hd2_control() error: uninitialized symbol 'hd2_scale_reg'.
vim +/look_ahead_dly_reg +1476 sound/soc/codecs/lpass-rx-macro.c
4f692926f562ff Srinivas Kandagatla 2021-02-11 1458 static int rx_macro_int_dem_inp_mux_put(struct snd_kcontrol *kcontrol,
4f692926f562ff Srinivas Kandagatla 2021-02-11 1459 struct snd_ctl_elem_value *ucontrol)
4f692926f562ff Srinivas Kandagatla 2021-02-11 1460 {
4f692926f562ff Srinivas Kandagatla 2021-02-11 1461 struct snd_soc_dapm_widget *widget = snd_soc_dapm_kcontrol_widget(kcontrol);
4f692926f562ff Srinivas Kandagatla 2021-02-11 1462 struct snd_soc_component *component = snd_soc_dapm_to_component(widget->dapm);
4f692926f562ff Srinivas Kandagatla 2021-02-11 1463 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
4f692926f562ff Srinivas Kandagatla 2021-02-11 1464 unsigned short look_ahead_dly_reg;
4f692926f562ff Srinivas Kandagatla 2021-02-11 1465 unsigned int val;
4f692926f562ff Srinivas Kandagatla 2021-02-11 1466
4f692926f562ff Srinivas Kandagatla 2021-02-11 1467 val = ucontrol->value.enumerated.item[0];
4f692926f562ff Srinivas Kandagatla 2021-02-11 1468
4f692926f562ff Srinivas Kandagatla 2021-02-11 1469 if (e->reg == CDC_RX_RX0_RX_PATH_CFG1)
4f692926f562ff Srinivas Kandagatla 2021-02-11 1470 look_ahead_dly_reg = CDC_RX_RX0_RX_PATH_CFG0;
4f692926f562ff Srinivas Kandagatla 2021-02-11 1471 else if (e->reg == CDC_RX_RX1_RX_PATH_CFG1)
4f692926f562ff Srinivas Kandagatla 2021-02-11 1472 look_ahead_dly_reg = CDC_RX_RX1_RX_PATH_CFG0;
Not initialized on else path.
4f692926f562ff Srinivas Kandagatla 2021-02-11 1473
4f692926f562ff Srinivas Kandagatla 2021-02-11 1474 /* Set Look Ahead Delay */
4f692926f562ff Srinivas Kandagatla 2021-02-11 1475 if (val)
4f692926f562ff Srinivas Kandagatla 2021-02-11 @1476 snd_soc_component_update_bits(component, look_ahead_dly_reg,
4f692926f562ff Srinivas Kandagatla 2021-02-11 1477 CDC_RX_DLY_ZN_EN_MASK,
4f692926f562ff Srinivas Kandagatla 2021-02-11 1478 CDC_RX_DLY_ZN_ENABLE);
4f692926f562ff Srinivas Kandagatla 2021-02-11 1479 else
4f692926f562ff Srinivas Kandagatla 2021-02-11 1480 snd_soc_component_update_bits(component, look_ahead_dly_reg,
4f692926f562ff Srinivas Kandagatla 2021-02-11 1481 CDC_RX_DLY_ZN_EN_MASK, 0);
4f692926f562ff Srinivas Kandagatla 2021-02-11 1482 /* Set DEM INP Select */
4f692926f562ff Srinivas Kandagatla 2021-02-11 1483 return snd_soc_dapm_put_enum_double(kcontrol, ucontrol);
4f692926f562ff Srinivas Kandagatla 2021-02-11 1484 }
---
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: 30989 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [asoc:for-5.12 107/117] sound/soc/codecs/lpass-rx-macro.c:1476 rx_macro_int_dem_inp_mux_put() error: uninitialized symbol 'look_ahead_dly_reg'.
@ 2021-02-15 13:42 ` Dan Carpenter
0 siblings, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2021-02-15 13:42 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3904 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.12
head: debc71f26cdbd45798c63b0dcdabdea93d2f6870
commit: 4f692926f562ff48abfcca6b16f36ff8d57473b6 [107/117] ASoC: codecs: lpass-rx-macro: add dapm widgets and route
config: x86_64-randconfig-m001-20210215 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 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/soc/codecs/lpass-rx-macro.c:1476 rx_macro_int_dem_inp_mux_put() error: uninitialized symbol 'look_ahead_dly_reg'.
sound/soc/codecs/lpass-rx-macro.c:2187 rx_macro_hd2_control() error: uninitialized symbol 'hd2_enable_reg'.
sound/soc/codecs/lpass-rx-macro.c:2188 rx_macro_hd2_control() error: uninitialized symbol 'hd2_scale_reg'.
sound/soc/codecs/lpass-rx-macro.c:2655 rx_macro_enable_echo() error: uninitialized symbol 'ec_tx'.
Old smatch warnings:
sound/soc/codecs/lpass-rx-macro.c:1480 rx_macro_int_dem_inp_mux_put() error: uninitialized symbol 'look_ahead_dly_reg'.
sound/soc/codecs/lpass-rx-macro.c:2197 rx_macro_hd2_control() error: uninitialized symbol 'hd2_scale_reg'.
vim +/look_ahead_dly_reg +1476 sound/soc/codecs/lpass-rx-macro.c
4f692926f562ff Srinivas Kandagatla 2021-02-11 1458 static int rx_macro_int_dem_inp_mux_put(struct snd_kcontrol *kcontrol,
4f692926f562ff Srinivas Kandagatla 2021-02-11 1459 struct snd_ctl_elem_value *ucontrol)
4f692926f562ff Srinivas Kandagatla 2021-02-11 1460 {
4f692926f562ff Srinivas Kandagatla 2021-02-11 1461 struct snd_soc_dapm_widget *widget = snd_soc_dapm_kcontrol_widget(kcontrol);
4f692926f562ff Srinivas Kandagatla 2021-02-11 1462 struct snd_soc_component *component = snd_soc_dapm_to_component(widget->dapm);
4f692926f562ff Srinivas Kandagatla 2021-02-11 1463 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
4f692926f562ff Srinivas Kandagatla 2021-02-11 1464 unsigned short look_ahead_dly_reg;
4f692926f562ff Srinivas Kandagatla 2021-02-11 1465 unsigned int val;
4f692926f562ff Srinivas Kandagatla 2021-02-11 1466
4f692926f562ff Srinivas Kandagatla 2021-02-11 1467 val = ucontrol->value.enumerated.item[0];
4f692926f562ff Srinivas Kandagatla 2021-02-11 1468
4f692926f562ff Srinivas Kandagatla 2021-02-11 1469 if (e->reg == CDC_RX_RX0_RX_PATH_CFG1)
4f692926f562ff Srinivas Kandagatla 2021-02-11 1470 look_ahead_dly_reg = CDC_RX_RX0_RX_PATH_CFG0;
4f692926f562ff Srinivas Kandagatla 2021-02-11 1471 else if (e->reg == CDC_RX_RX1_RX_PATH_CFG1)
4f692926f562ff Srinivas Kandagatla 2021-02-11 1472 look_ahead_dly_reg = CDC_RX_RX1_RX_PATH_CFG0;
Not initialized on else path.
4f692926f562ff Srinivas Kandagatla 2021-02-11 1473
4f692926f562ff Srinivas Kandagatla 2021-02-11 1474 /* Set Look Ahead Delay */
4f692926f562ff Srinivas Kandagatla 2021-02-11 1475 if (val)
4f692926f562ff Srinivas Kandagatla 2021-02-11 @1476 snd_soc_component_update_bits(component, look_ahead_dly_reg,
4f692926f562ff Srinivas Kandagatla 2021-02-11 1477 CDC_RX_DLY_ZN_EN_MASK,
4f692926f562ff Srinivas Kandagatla 2021-02-11 1478 CDC_RX_DLY_ZN_ENABLE);
4f692926f562ff Srinivas Kandagatla 2021-02-11 1479 else
4f692926f562ff Srinivas Kandagatla 2021-02-11 1480 snd_soc_component_update_bits(component, look_ahead_dly_reg,
4f692926f562ff Srinivas Kandagatla 2021-02-11 1481 CDC_RX_DLY_ZN_EN_MASK, 0);
4f692926f562ff Srinivas Kandagatla 2021-02-11 1482 /* Set DEM INP Select */
4f692926f562ff Srinivas Kandagatla 2021-02-11 1483 return snd_soc_dapm_put_enum_double(kcontrol, ucontrol);
4f692926f562ff Srinivas Kandagatla 2021-02-11 1484 }
---
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: 30989 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-02-15 13:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-15 0:02 [asoc:for-5.12 107/117] sound/soc/codecs/lpass-rx-macro.c:1476 rx_macro_int_dem_inp_mux_put() error: uninitialized symbol 'look_ahead_dly_reg' kernel test robot
2021-02-15 13:42 Dan Carpenter
2021-02-15 13:42 ` Dan Carpenter
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.