:::::: :::::: Manual check reason: "low confidence bisect report" :::::: Manual check reason: "low confidence static check warning: sound/soc/tegra/tegra210_mvc.c:117:13: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]" ::::::
BCC: [email protected] CC: [email protected] CC: [email protected] TO: Sameer Pujar <[email protected]> CC: Mark Brown <[email protected]> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 69dac8e431af26173ca0a1ebc87054e01c585bcc commit: e539891f968722d632234ac942c4749ad8ca189a ASoC: tegra: Add Tegra210 based MVC driver date: 11 months ago :::::: branch date: 21 hours ago :::::: commit date: 11 months ago config: arm-randconfig-c002-20220810 (https://download.01.org/0day-ci/archive/20220814/[email protected]/config) compiler: arm-linux-gnueabi-gcc (GCC) 12.1.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/torvalds/linux.git/commit/?id=e539891f968722d632234ac942c4749ad8ca189a git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout e539891f968722d632234ac942c4749ad8ca189a # save the config file COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross ARCH=arm KBUILD_USERCFLAGS='-fanalyzer -Wno-error' If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <[email protected]> gcc-analyzer warnings: (new ones prefixed by >>) sound/soc/tegra/tegra210_mvc.c: In function 'tegra210_mvc_get_mute': >> sound/soc/tegra/tegra210_mvc.c:117:13: warning: use of uninitialized value >> '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 117 | u32 val; | ^~~ 'tegra210_mvc_get_mute': event 1 | | 117 | u32 val; | | ^~~ | | | | | (1) use of uninitialized value '<unknown>' here | sound/soc/tegra/tegra210_mvc.c: In function 'tegra210_mvc_put_mute': sound/soc/tegra/tegra210_mvc.c:138:22: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 138 | unsigned int value; | ^~~~~ 'tegra210_mvc_put_mute': event 1 | | 138 | unsigned int value; | | ^~~~~ | | | | | (1) use of uninitialized value '<unknown>' here | sound/soc/tegra/tegra210_mvc.c: In function 'tegra210_mvc_put_vol': sound/soc/tegra/tegra210_mvc.c:196:22: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 196 | unsigned int value; | ^~~~~ 'tegra210_mvc_put_vol': event 1 | | 196 | unsigned int value; | | ^~~~~ | | | | | (1) use of uninitialized value '<unknown>' here | sound/soc/tegra/tegra210_mvc.c: In function 'tegra210_mvc_put_curve_type': sound/soc/tegra/tegra210_mvc.c:288:13: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 288 | int value; | ^~~~~ 'tegra210_mvc_put_curve_type': event 1 | | 288 | int value; | | ^~~~~ | | | | | (1) use of uninitialized value '<unknown>' here | sound/soc/tegra/tegra210_mvc.c: In function 'tegra210_mvc_hw_params': sound/soc/tegra/tegra210_mvc.c:345:18: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 345 | int err, val; | ^~~ 'tegra210_mvc_hw_params': event 1 | | 345 | int err, val; | | ^~~ | | | | | (1) use of uninitialized value '<unknown>' here | vim +117 sound/soc/tegra/tegra210_mvc.c e539891f968722 Sameer Pujar 2021-09-13 110 e539891f968722 Sameer Pujar 2021-09-13 111 static int tegra210_mvc_get_mute(struct snd_kcontrol *kcontrol, e539891f968722 Sameer Pujar 2021-09-13 112 struct snd_ctl_elem_value *ucontrol) e539891f968722 Sameer Pujar 2021-09-13 113 { e539891f968722 Sameer Pujar 2021-09-13 114 struct snd_soc_component *cmpnt = snd_soc_kcontrol_component(kcontrol); e539891f968722 Sameer Pujar 2021-09-13 115 struct tegra210_mvc *mvc = snd_soc_component_get_drvdata(cmpnt); e539891f968722 Sameer Pujar 2021-09-13 116 u8 mute_mask; e539891f968722 Sameer Pujar 2021-09-13 @117 u32 val; e539891f968722 Sameer Pujar 2021-09-13 118 e539891f968722 Sameer Pujar 2021-09-13 119 pm_runtime_get_sync(cmpnt->dev); e539891f968722 Sameer Pujar 2021-09-13 120 regmap_read(mvc->regmap, TEGRA210_MVC_CTRL, &val); e539891f968722 Sameer Pujar 2021-09-13 121 pm_runtime_put(cmpnt->dev); e539891f968722 Sameer Pujar 2021-09-13 122 e539891f968722 Sameer Pujar 2021-09-13 123 mute_mask = (val >> TEGRA210_MVC_MUTE_SHIFT) & e539891f968722 Sameer Pujar 2021-09-13 124 TEGRA210_MUTE_MASK_EN; e539891f968722 Sameer Pujar 2021-09-13 125 e539891f968722 Sameer Pujar 2021-09-13 126 ucontrol->value.integer.value[0] = mute_mask; e539891f968722 Sameer Pujar 2021-09-13 127 e539891f968722 Sameer Pujar 2021-09-13 128 return 0; e539891f968722 Sameer Pujar 2021-09-13 129 } e539891f968722 Sameer Pujar 2021-09-13 130 -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
