:::::: :::::: Manual check reason: "low confidence bisect report" :::::: Manual check reason: "low confidence static check warning: drivers/platform/mellanox/mlxreg-lc.c:459:13: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]" ::::::
BCC: [email protected] CC: [email protected] CC: [email protected] TO: Vadim Pasternak <[email protected]> CC: Hans de Goede <[email protected]> CC: Michael Shych <[email protected]> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7726d4c3e60bfe206738894267414a5f10510f1a commit: 62f9529b8d5c87b89c3d9698405014bc8f370fbd platform/mellanox: mlxreg-lc: Add initial support for Nvidia line card devices date: 11 months ago :::::: branch date: 5 hours ago :::::: commit date: 11 months ago config: arm-randconfig-c002-20220829 (https://download.01.org/0day-ci/archive/20220904/[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=62f9529b8d5c87b89c3d9698405014bc8f370fbd git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 62f9529b8d5c87b89c3d9698405014bc8f370fbd # 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 >>) drivers/platform/mellanox/mlxreg-lc.c: In function 'mlxreg_lc_power_on_off': >> drivers/platform/mellanox/mlxreg-lc.c:459:13: warning: use of uninitialized >> value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 459 | u32 regval; | ^~~~~~ 'mlxreg_lc_power_on_off': event 1 | | 459 | u32 regval; | | ^~~~~~ | | | | | (1) use of uninitialized value '<unknown>' here | drivers/platform/mellanox/mlxreg-lc.c: In function 'mlxreg_lc_enable_disable': drivers/platform/mellanox/mlxreg-lc.c:482:13: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 482 | u32 regval; | ^~~~~~ 'mlxreg_lc_enable_disable': event 1 | | 482 | u32 regval; | | ^~~~~~ | | | | | (1) use of uninitialized value '<unknown>' here | drivers/platform/mellanox/mlxreg-lc.c: In function 'mlxreg_lc_completion_notify': drivers/platform/mellanox/mlxreg-lc.c:634:13: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 634 | u32 regval; | ^~~~~~ 'mlxreg_lc_completion_notify': event 1 | | 634 | u32 regval; | | ^~~~~~ | | | | | (1) use of uninitialized value '<unknown>' here | drivers/platform/mellanox/mlxreg-lc.c: In function 'mlxreg_lc_config_init': drivers/platform/mellanox/mlxreg-lc.c:706:13: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 706 | int lsb, err; | ^~~ 'mlxreg_lc_config_init': event 1 | | 706 | int lsb, err; | | ^~~ | | | | | (1) use of uninitialized value '<unknown>' here | drivers/platform/mellanox/mlxreg-lc.c:707:13: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 707 | u32 regval; | ^~~~~~ 'mlxreg_lc_config_init': event 1 | | 707 | u32 regval; | | ^~~~~~ | | | | | (1) use of uninitialized value '<unknown>' here | vim +459 drivers/platform/mellanox/mlxreg-lc.c 62f9529b8d5c87 Vadim Pasternak 2021-10-02 456 62f9529b8d5c87 Vadim Pasternak 2021-10-02 457 static int mlxreg_lc_power_on_off(struct mlxreg_lc *mlxreg_lc, u8 action) 62f9529b8d5c87 Vadim Pasternak 2021-10-02 458 { 62f9529b8d5c87 Vadim Pasternak 2021-10-02 @459 u32 regval; 62f9529b8d5c87 Vadim Pasternak 2021-10-02 460 int err; 62f9529b8d5c87 Vadim Pasternak 2021-10-02 461 62f9529b8d5c87 Vadim Pasternak 2021-10-02 462 mutex_lock(&mlxreg_lc->lock); 62f9529b8d5c87 Vadim Pasternak 2021-10-02 463 62f9529b8d5c87 Vadim Pasternak 2021-10-02 464 err = regmap_read(mlxreg_lc->par_regmap, mlxreg_lc->data->reg_pwr, ®val); 62f9529b8d5c87 Vadim Pasternak 2021-10-02 465 if (err) 62f9529b8d5c87 Vadim Pasternak 2021-10-02 466 goto regmap_read_fail; 62f9529b8d5c87 Vadim Pasternak 2021-10-02 467 62f9529b8d5c87 Vadim Pasternak 2021-10-02 468 if (action) 62f9529b8d5c87 Vadim Pasternak 2021-10-02 469 regval |= BIT(mlxreg_lc->data->slot - 1); 62f9529b8d5c87 Vadim Pasternak 2021-10-02 470 else 62f9529b8d5c87 Vadim Pasternak 2021-10-02 471 regval &= ~BIT(mlxreg_lc->data->slot - 1); 62f9529b8d5c87 Vadim Pasternak 2021-10-02 472 62f9529b8d5c87 Vadim Pasternak 2021-10-02 473 err = regmap_write(mlxreg_lc->par_regmap, mlxreg_lc->data->reg_pwr, regval); 62f9529b8d5c87 Vadim Pasternak 2021-10-02 474 62f9529b8d5c87 Vadim Pasternak 2021-10-02 475 regmap_read_fail: 62f9529b8d5c87 Vadim Pasternak 2021-10-02 476 mutex_unlock(&mlxreg_lc->lock); 62f9529b8d5c87 Vadim Pasternak 2021-10-02 477 return err; 62f9529b8d5c87 Vadim Pasternak 2021-10-02 478 } 62f9529b8d5c87 Vadim Pasternak 2021-10-02 479 -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
