:::::: :::::: Manual check reason: "low confidence bisect report" :::::: Manual check reason: "low confidence static check warning: drivers/phy/hisilicon/phy-hi3670-pcie.c:204:13: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]" ::::::
BCC: [email protected] CC: [email protected] CC: [email protected] TO: Mauro Carvalho Chehab <[email protected]> CC: [email protected] CC: Vinod Koul <[email protected]> CC: Manivannan Sadhasivam <[email protected]> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ce888220d5c7a805e0e155302a318d5d23e62950 commit: 73075011ffff876de8516a1e583dc41869293da9 phy: HiSilicon: Add driver for Kirin 970 PCIe PHY date: 11 months ago :::::: branch date: 10 hours ago :::::: commit date: 11 months ago config: arm-randconfig-c002-20220906 (https://download.01.org/0day-ci/archive/20220910/[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=73075011ffff876de8516a1e583dc41869293da9 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 73075011ffff876de8516a1e583dc41869293da9 # 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/phy/hisilicon/phy-hi3670-pcie.c: In function 'hi3670_pcie_phy_oe_enable': >> drivers/phy/hisilicon/phy-hi3670-pcie.c:204:13: warning: use of >> uninitialized value '<unknown>' [CWE-457] >> [-Wanalyzer-use-of-uninitialized-value] 204 | u32 val; | ^~~ 'hi3670_pcie_phy_oe_enable': event 1 | | 204 | u32 val; | | ^~~ | | | | | (1) use of uninitialized value '<unknown>' here | drivers/phy/hisilicon/phy-hi3670-pcie.c: In function 'hi3670_pcie_natural_cfg': drivers/phy/hisilicon/phy-hi3670-pcie.c:280:13: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 280 | u32 val; | ^~~ 'hi3670_pcie_natural_cfg': event 1 | | 280 | u32 val; | | ^~~ | | | | | (1) use of uninitialized value '<unknown>' here | drivers/phy/hisilicon/phy-hi3670-pcie.c: In function 'hi3670_pcie_phyref_gt': drivers/phy/hisilicon/phy-hi3670-pcie.c:388:22: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 388 | unsigned int val; | ^~~ 'hi3670_pcie_phyref_gt': event 1 | | 388 | unsigned int val; | | ^~~ | | | | | (1) use of uninitialized value '<unknown>' here | drivers/phy/hisilicon/phy-hi3670-pcie.c: In function 'hi3670_pcie_oe_ctrl': drivers/phy/hisilicon/phy-hi3670-pcie.c:405:22: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 405 | unsigned int val; | ^~~ 'hi3670_pcie_oe_ctrl': event 1 | | 405 | unsigned int val; | | ^~~ | | | | | (1) use of uninitialized value '<unknown>' here | drivers/phy/hisilicon/phy-hi3670-pcie.c: In function 'hi3670_pcie_ioref_gt': drivers/phy/hisilicon/phy-hi3670-pcie.c:431:22: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 431 | unsigned int val; | ^~~ 'hi3670_pcie_ioref_gt': event 1 | | 431 | unsigned int val; | | ^~~ | | | | | (1) use of uninitialized value '<unknown>' here | drivers/phy/hisilicon/phy-hi3670-pcie.c: In function 'hi3670_pcie_phy_power_on': drivers/phy/hisilicon/phy-hi3670-pcie.c:663:13: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 663 | int val, ret; | ^~~ 'hi3670_pcie_phy_power_on': event 1 | | 663 | int val, ret; | | ^~~ | | | | | (1) use of uninitialized value '<unknown>' here | vim +204 drivers/phy/hisilicon/phy-hi3670-pcie.c 73075011ffff87 Mauro Carvalho Chehab 2021-09-28 201 73075011ffff87 Mauro Carvalho Chehab 2021-09-28 202 static void hi3670_pcie_phy_oe_enable(struct hi3670_pcie_phy *phy, bool enable) 73075011ffff87 Mauro Carvalho Chehab 2021-09-28 203 { 73075011ffff87 Mauro Carvalho Chehab 2021-09-28 @204 u32 val; 73075011ffff87 Mauro Carvalho Chehab 2021-09-28 205 73075011ffff87 Mauro Carvalho Chehab 2021-09-28 206 regmap_read(phy->sysctrl, SCTRL_PCIE_OE_OFFSET, &val); 73075011ffff87 Mauro Carvalho Chehab 2021-09-28 207 val |= PCIE_DEBOUNCE_PARAM; 73075011ffff87 Mauro Carvalho Chehab 2021-09-28 208 if (enable) 73075011ffff87 Mauro Carvalho Chehab 2021-09-28 209 val &= ~PCIE_OE_BYPASS; 73075011ffff87 Mauro Carvalho Chehab 2021-09-28 210 else 73075011ffff87 Mauro Carvalho Chehab 2021-09-28 211 val |= PCIE_OE_BYPASS; 73075011ffff87 Mauro Carvalho Chehab 2021-09-28 212 regmap_write(phy->sysctrl, SCTRL_PCIE_OE_OFFSET, val); 73075011ffff87 Mauro Carvalho Chehab 2021-09-28 213 } 73075011ffff87 Mauro Carvalho Chehab 2021-09-28 214 -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
