CC: [email protected] CC: [email protected] TO: Yang Yingliang <[email protected]> CC: Jakub Kicinski <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 5f53fa508db098c9d372423a6dac31c8a5679cdf commit: 7c9896e37807862e276064dd9331860f5d27affc net: dsa: qca8k: check return value of read functions correctly date: 6 months ago :::::: branch date: 5 hours ago :::::: commit date: 6 months ago compiler: mips-linux-gcc (GCC) 11.2.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> cppcheck possible warnings: (new ones prefixed by >>, may not real problems) >> drivers/net/dsa/qca8k.c:293:46: warning: Uninitialized variable: val >> [uninitvar] ret = read_poll_timeout(qca8k_read, ret1, !(val & mask), ^ drivers/net/dsa/qca8k.c:632:52: warning: Uninitialized variable: val [uninitvar] ret = read_poll_timeout(qca8k_mii_read32, ret1, !(val & mask), 0, ^ vim +293 drivers/net/dsa/qca8k.c 6b93fb46480a9c John Crispin 2016-09-15 286 6b93fb46480a9c John Crispin 2016-09-15 287 static int 6b93fb46480a9c John Crispin 2016-09-15 288 qca8k_busy_wait(struct qca8k_priv *priv, u32 reg, u32 mask) 6b93fb46480a9c John Crispin 2016-09-15 289 { 7c9896e3780786 Yang Yingliang 2021-05-29 290 int ret, ret1; 2ad255f2faaffb Ansuel Smith 2021-05-14 291 u32 val; 6b93fb46480a9c John Crispin 2016-09-15 292 7c9896e3780786 Yang Yingliang 2021-05-29 @293 ret = read_poll_timeout(qca8k_read, ret1, !(val & mask), 2ad255f2faaffb Ansuel Smith 2021-05-14 294 0, QCA8K_BUSY_WAIT_TIMEOUT * USEC_PER_MSEC, false, 7c9896e3780786 Yang Yingliang 2021-05-29 295 priv, reg, &val); 6b93fb46480a9c John Crispin 2016-09-15 296 2ad255f2faaffb Ansuel Smith 2021-05-14 297 /* Check if qca8k_read has failed for a different reason 2ad255f2faaffb Ansuel Smith 2021-05-14 298 * before returning -ETIMEDOUT 2ad255f2faaffb Ansuel Smith 2021-05-14 299 */ 7c9896e3780786 Yang Yingliang 2021-05-29 300 if (ret < 0 && ret1 < 0) 7c9896e3780786 Yang Yingliang 2021-05-29 301 return ret1; 6b93fb46480a9c John Crispin 2016-09-15 302 2ad255f2faaffb Ansuel Smith 2021-05-14 303 return ret; 6b93fb46480a9c John Crispin 2016-09-15 304 } 6b93fb46480a9c John Crispin 2016-09-15 305 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected] _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
