:::::: :::::: Manual check reason: "low confidence bisect report" :::::: Manual check reason: "low confidence static check warning: drivers/media/i2c/tc358840.c:320:13: warning: use of uninitialized value '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]" ::::::
CC: [email protected] BCC: [email protected] CC: [email protected] TO: Hans Verkuil <[email protected]> tree: git://linuxtv.org/hverkuil/media_tree.git tegrav8 head: 386823032a34ce7926c18033b0ca34de9145a206 commit: f51f9140626da0e72ade6bd437ac2fe13e9b0425 [2/7] tc358840: add Toshiba tc358840 HDMI-to-CSI bridge. :::::: branch date: 9 days ago :::::: commit date: 9 days ago config: arm-randconfig-c002-20220731 (https://download.01.org/0day-ci/archive/20220804/[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 git remote add hverkuil-media-tree git://linuxtv.org/hverkuil/media_tree.git git fetch --no-tags hverkuil-media-tree tegrav8 git checkout f51f9140626da0e72ade6bd437ac2fe13e9b0425 # 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 >>) In function 'i2c_rd16', inlined from 'i2c_wr16_and_or' at drivers/media/i2c/tc358840.c:334:21: >> drivers/media/i2c/tc358840.c:320:13: warning: use of uninitialized value >> '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value] 320 | u16 val; | ^~~ 'enable_audio_block_and_i2s': events 1-2 | | 3332 | static void enable_audio_block_and_i2s(struct v4l2_subdev *sd) | | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | | (1) entry to 'enable_audio_block_and_i2s' |...... | 3335 | i2c_wr16_and_or(sd, I2S_PUDCTL, 0, 0); | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | | (2) calling 'i2c_wr16_and_or' from 'enable_audio_block_and_i2s' | +--> 'i2c_wr16_and_or': events 3-4 | | 320 | u16 val; | | ~~~ | | | | | (4) use of uninitialized value '<unknown>' here |...... | 332 | static void i2c_wr16_and_or(struct v4l2_subdev *sd, u16 reg, u16 mask, u16 val) | | ^~~~~~~~~~~~~~~ | | | | | (3) entry to 'i2c_wr16_and_or' | vim +320 drivers/media/i2c/tc358840.c f51f9140626da0e Hans Verkuil 2020-02-21 317 f51f9140626da0e Hans Verkuil 2020-02-21 318 static u16 i2c_rd16(struct v4l2_subdev *sd, u16 reg) f51f9140626da0e Hans Verkuil 2020-02-21 319 { f51f9140626da0e Hans Verkuil 2020-02-21 @320 u16 val; f51f9140626da0e Hans Verkuil 2020-02-21 321 f51f9140626da0e Hans Verkuil 2020-02-21 322 i2c_rd(sd, reg, (u8 *)&val, 2); f51f9140626da0e Hans Verkuil 2020-02-21 323 f51f9140626da0e Hans Verkuil 2020-02-21 324 return val; f51f9140626da0e Hans Verkuil 2020-02-21 325 } f51f9140626da0e Hans Verkuil 2020-02-21 326 -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
