All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/net/dsa/qca/qca8k-common.c:144:13: warning: use of uninitialized value '<unknown>' [CWE-457]
@ 2022-09-19  5:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-09-19  5:59 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3115 bytes --]

:::::: 
:::::: Manual check reason: "low confidence bisect report"
:::::: Manual check reason: "low confidence static check warning: drivers/net/dsa/qca/qca8k-common.c:144:13: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]"
:::::: 

BCC: lkp(a)intel.com
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Christian Marangi <ansuelsmth@gmail.com>
CC: Jakub Kicinski <kuba@kernel.org>
CC: Vladimir Oltean <olteanv@gmail.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   521a547ced6477c54b4b0cc206000406c221b4d6
commit: fce1ec0c4e2d03d9c62ffc615a42bdba78eb4c14 net: dsa: qca8k: move mib init function to common code
date:   7 weeks ago
:::::: branch date: 9 hours ago
:::::: commit date: 7 weeks ago
config: arm-randconfig-c002-20220917 (https://download.01.org/0day-ci/archive/20220919/202209191320.7VaphCTX-lkp(a)intel.com/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=fce1ec0c4e2d03d9c62ffc615a42bdba78eb4c14
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout fce1ec0c4e2d03d9c62ffc615a42bdba78eb4c14
        # 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 <lkp@intel.com>

gcc_analyzer warnings: (new ones prefixed by >>)
   drivers/net/dsa/qca/qca8k-common.c: In function 'qca8k_busy_wait':
>> drivers/net/dsa/qca/qca8k-common.c:144:13: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]
     144 |         u32 val;
         |             ^~~
     'qca8k_busy_wait': event 1
       |
       |  144 |         u32 val;
       |      |             ^~~
       |      |             |
       |      |             (1) use of uninitialized value '<unknown>' here
       |

vim +144 drivers/net/dsa/qca/qca8k-common.c

fce1ec0c4e2d03 Christian Marangi 2022-07-27  141  
fce1ec0c4e2d03 Christian Marangi 2022-07-27  142  int qca8k_busy_wait(struct qca8k_priv *priv, u32 reg, u32 mask)
fce1ec0c4e2d03 Christian Marangi 2022-07-27  143  {
fce1ec0c4e2d03 Christian Marangi 2022-07-27 @144  	u32 val;
fce1ec0c4e2d03 Christian Marangi 2022-07-27  145  
fce1ec0c4e2d03 Christian Marangi 2022-07-27  146  	return regmap_read_poll_timeout(priv->regmap, reg, val, !(val & mask), 0,
fce1ec0c4e2d03 Christian Marangi 2022-07-27  147  				       QCA8K_BUSY_WAIT_TIMEOUT * USEC_PER_MSEC);
fce1ec0c4e2d03 Christian Marangi 2022-07-27  148  }
fce1ec0c4e2d03 Christian Marangi 2022-07-27  149  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-19  5:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-19  5:59 drivers/net/dsa/qca/qca8k-common.c:144:13: warning: use of uninitialized value '<unknown>' [CWE-457] kernel test robot

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.