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

CC: [email protected]
BCC: [email protected]
CC: [email protected]
TO: Arec Kao <[email protected]>
CC: Mauro Carvalho Chehab <[email protected]>
CC: [email protected]
CC: Sakari Ailus <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   68e77ffbfd06ae3ef8f2abf1c3b971383c866983
commit: 7ee85054682299babdb32f597b11daeec2d3e9d9 media: Add sensor driver 
support for the ov13b10 camera.
date:   10 months ago
:::::: branch date: 17 hours ago
:::::: commit date: 10 months ago
config: arm-randconfig-c002-20220718 
(https://download.01.org/0day-ci/archive/20220722/[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=7ee85054682299babdb32f597b11daeec2d3e9d9
        git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 7ee85054682299babdb32f597b11daeec2d3e9d9
        # 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/ov13b10.c: In function 'ov13b10_write_reg':
>> drivers/media/i2c/ov13b10.c:639:16: warning: use of uninitialized value 
>> '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]
     639 |         __be32 val;
         |                ^~~
     'ov13b10_write_reg': event 1
       |
       |  639 |         __be32 val;
       |      |                ^~~
       |      |                |
       |      |                (1) use of uninitialized value '<unknown>' here
       |
   drivers/media/i2c/ov13b10.c: In function 'ov13b10_enable_test_pattern':
   drivers/media/i2c/ov13b10.c:744:13: warning: use of uninitialized value 
'<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]
     744 |         u32 val;
         |             ^~~
     'ov13b10_enable_test_pattern': event 1
       |
       |  744 |         u32 val;
       |      |             ^~~
       |      |             |
       |      |             (1) use of uninitialized value '<unknown>' here
       |
   drivers/media/i2c/ov13b10.c: In function 'ov13b10_set_ctrl_hflip':
   drivers/media/i2c/ov13b10.c:766:13: warning: use of uninitialized value 
'<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]
     766 |         u32 val;
         |             ^~~
     'ov13b10_set_ctrl_hflip': event 1
       |
       |  766 |         u32 val;
       |      |             ^~~
       |      |             |
       |      |             (1) use of uninitialized value '<unknown>' here
       |
   drivers/media/i2c/ov13b10.c: In function 'ov13b10_set_ctrl_vflip':
   drivers/media/i2c/ov13b10.c:797:13: warning: use of uninitialized value 
'<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]
     797 |         u32 val;
         |             ^~~
     'ov13b10_set_ctrl_vflip': event 1
       |
       |  797 |         u32 val;
       |      |             ^~~
       |      |             |
       |      |             (1) use of uninitialized value '<unknown>' here
       |
   drivers/media/i2c/ov13b10.c: In function 'ov13b10_identify_module':
   drivers/media/i2c/ov13b10.c:1152:13: warning: use of uninitialized value 
'<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]
    1152 |         u32 val;
         |             ^~~
     'ov13b10_identify_module': event 1
       |
       | 1152 |         u32 val;
       |      |             ^~~
       |      |             |
       |      |             (1) use of uninitialized value '<unknown>' here
       |
   drivers/media/i2c/ov13b10.c: In function 'ov13b10_check_hwcfg':
   drivers/media/i2c/ov13b10.c:1318:13: warning: use of uninitialized value 
'<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]
    1318 |         u32 ext_clk;
         |             ^~~~~~~
     'ov13b10_check_hwcfg': event 1
       |
       | 1318 |         u32 ext_clk;
       |      |             ^~~~~~~
       |      |             |
       |      |             (1) use of uninitialized value '<unknown>' here
       |

vim +639 drivers/media/i2c/ov13b10.c

7ee85054682299 Arec Kao 2021-08-17  631  
7ee85054682299 Arec Kao 2021-08-17  632  /* Write registers up to 4 at a time */
7ee85054682299 Arec Kao 2021-08-17  633  static int ov13b10_write_reg(struct 
ov13b10 *ov13b,
7ee85054682299 Arec Kao 2021-08-17  634                              u16 reg, 
u32 len, u32 __val)
7ee85054682299 Arec Kao 2021-08-17  635  {
7ee85054682299 Arec Kao 2021-08-17  636         struct i2c_client *client = 
v4l2_get_subdevdata(&ov13b->sd);
7ee85054682299 Arec Kao 2021-08-17  637         int buf_i, val_i;
7ee85054682299 Arec Kao 2021-08-17  638         u8 buf[6], *val_p;
7ee85054682299 Arec Kao 2021-08-17 @639         __be32 val;
7ee85054682299 Arec Kao 2021-08-17  640  
7ee85054682299 Arec Kao 2021-08-17  641         if (len > 4)
7ee85054682299 Arec Kao 2021-08-17  642                 return -EINVAL;
7ee85054682299 Arec Kao 2021-08-17  643  
7ee85054682299 Arec Kao 2021-08-17  644         buf[0] = reg >> 8;
7ee85054682299 Arec Kao 2021-08-17  645         buf[1] = reg & 0xff;
7ee85054682299 Arec Kao 2021-08-17  646  
7ee85054682299 Arec Kao 2021-08-17  647         val = cpu_to_be32(__val);
7ee85054682299 Arec Kao 2021-08-17  648         val_p = (u8 *)&val;
7ee85054682299 Arec Kao 2021-08-17  649         buf_i = 2;
7ee85054682299 Arec Kao 2021-08-17  650         val_i = 4 - len;
7ee85054682299 Arec Kao 2021-08-17  651  
7ee85054682299 Arec Kao 2021-08-17  652         while (val_i < 4)
7ee85054682299 Arec Kao 2021-08-17  653                 buf[buf_i++] = 
val_p[val_i++];
7ee85054682299 Arec Kao 2021-08-17  654  
7ee85054682299 Arec Kao 2021-08-17  655         if (i2c_master_send(client, 
buf, len + 2) != len + 2)
7ee85054682299 Arec Kao 2021-08-17  656                 return -EIO;
7ee85054682299 Arec Kao 2021-08-17  657  
7ee85054682299 Arec Kao 2021-08-17  658         return 0;
7ee85054682299 Arec Kao 2021-08-17  659  }
7ee85054682299 Arec Kao 2021-08-17  660  

-- 
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