All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [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'.
Date: Mon, 15 Feb 2021 08:02:37 +0800	[thread overview]
Message-ID: <202102150832.01b5Wvu0-lkp@intel.com> (raw)

[-- 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 --]

             reply	other threads:[~2021-02-15  0:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-15  0:02 kernel test robot [this message]
2021-02-15 13:42 [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' Dan Carpenter
2021-02-15 13:42 ` Dan Carpenter

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=202102150832.01b5Wvu0-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@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.