:::::: 
:::::: Manual check reason: "low confidence bisect report"
:::::: Manual check reason: "low confidence static check warning: 
drivers/media/i2c/hi846.c:1320:12: warning: use of uninitialized value 
'<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]"
:::::: 

CC: [email protected]
BCC: [email protected]
CC: [email protected]
TO: Martin Kepplinger <[email protected]>
CC: Mauro Carvalho Chehab <[email protected]>
CC: [email protected]
CC: Pavel Machek <[email protected]>
CC: Sakari Ailus <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   70664fc10c0d722ec79d746d8ac1db8546c94114
commit: e8c0882685f9152f0d729664a12bcbe749cb7736 media: i2c: add driver for the 
SK Hynix Hi-846 8M pixel camera
date:   10 months ago
:::::: branch date: 10 hours ago
:::::: commit date: 10 months ago
config: arm-randconfig-c002-20220718 
(https://download.01.org/0day-ci/archive/20220723/[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=e8c0882685f9152f0d729664a12bcbe749cb7736
        git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout e8c0882685f9152f0d729664a12bcbe749cb7736
        # save the config file
         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/media/i2c/hi846.c: In function 'hi846_test_pattern':
>> drivers/media/i2c/hi846.c:1320:12: warning: use of uninitialized value 
>> '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]
    1320 |         u8 val;
         |            ^~~
     'hi846_test_pattern': event 1
       |
       | 1320 |         u8 val;
       |      |            ^~~
       |      |            |
       |      |            (1) use of uninitialized value '<unknown>' here
       |
   drivers/media/i2c/hi846.c: In function 'hi846_start_streaming':
   drivers/media/i2c/hi846.c:1526:12: warning: use of uninitialized value 
'<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]
    1526 |         u8 val;
         |            ^~~
     'hi846_start_streaming': event 1
       |
       | 1526 |         u8 val;
       |      |            ^~~
       |      |            |
       |      |            (1) use of uninitialized value '<unknown>' here
       |
   drivers/media/i2c/hi846.c: In function 'hi846_identify_module':
   drivers/media/i2c/hi846.c:1942:12: warning: use of uninitialized value 
'<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]
    1942 |         u8 hi, lo;
         |            ^~
     'hi846_identify_module': event 1
       |
       | 1942 |         u8 hi, lo;
       |      |            ^~
       |      |            |
       |      |            (1) use of uninitialized value '<unknown>' here
       |
   drivers/media/i2c/hi846.c:1942:16: warning: use of uninitialized value 
'<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]
    1942 |         u8 hi, lo;
         |                ^~
     'hi846_identify_module': event 1
       |
       | 1942 |         u8 hi, lo;
       |      |                ^~
       |      |                |
       |      |                (1) use of uninitialized value '<unknown>' here
       |

vim +1320 drivers/media/i2c/hi846.c

e8c0882685f9152 Martin Kepplinger 2021-09-06  1316  
e8c0882685f9152 Martin Kepplinger 2021-09-06  1317  static int 
hi846_test_pattern(struct hi846 *hi846, u32 pattern)
e8c0882685f9152 Martin Kepplinger 2021-09-06  1318  {
e8c0882685f9152 Martin Kepplinger 2021-09-06  1319      int ret;
e8c0882685f9152 Martin Kepplinger 2021-09-06 @1320      u8 val;
e8c0882685f9152 Martin Kepplinger 2021-09-06  1321  
e8c0882685f9152 Martin Kepplinger 2021-09-06  1322      if (pattern) {
e8c0882685f9152 Martin Kepplinger 2021-09-06  1323              ret = 
hi846_read_reg(hi846, HI846_REG_ISP, &val);
e8c0882685f9152 Martin Kepplinger 2021-09-06  1324              if (ret)
e8c0882685f9152 Martin Kepplinger 2021-09-06  1325                      return 
ret;
e8c0882685f9152 Martin Kepplinger 2021-09-06  1326  
e8c0882685f9152 Martin Kepplinger 2021-09-06  1327              ret = 
hi846_write_reg(hi846, HI846_REG_ISP,
e8c0882685f9152 Martin Kepplinger 2021-09-06  1328                              
      val | HI846_REG_ISP_TPG_EN);
e8c0882685f9152 Martin Kepplinger 2021-09-06  1329              if (ret)
e8c0882685f9152 Martin Kepplinger 2021-09-06  1330                      return 
ret;
e8c0882685f9152 Martin Kepplinger 2021-09-06  1331      }
e8c0882685f9152 Martin Kepplinger 2021-09-06  1332  
e8c0882685f9152 Martin Kepplinger 2021-09-06  1333      return 
hi846_write_reg(hi846, HI846_REG_TEST_PATTERN, pattern);
e8c0882685f9152 Martin Kepplinger 2021-09-06  1334  }
e8c0882685f9152 Martin Kepplinger 2021-09-06  1335  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to