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

CC: [email protected]
BCC: [email protected]
CC: [email protected]
TO: Shawn Tu <[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:   ca85855bdcae8f84f1512e88b4c75009ea17ea2f
commit: da15b409ef4c56e9741deddb91798370802d1d02 media: hi847: Add support for 
Hi-847 sensor
date:   6 months ago
:::::: branch date: 2 days ago
:::::: commit date: 6 months ago
config: arm-randconfig-c002-20220718 
(https://download.01.org/0day-ci/archive/20220721/[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=da15b409ef4c56e9741deddb91798370802d1d02
        git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout da15b409ef4c56e9741deddb91798370802d1d02
        # 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/hi847.c: In function 'hi847_test_pattern':
>> drivers/media/i2c/hi847.c:2295:13: warning: use of uninitialized value 
>> '<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]
    2295 |         u32 val;
         |             ^~~
     'hi847_test_pattern': event 1
       |
       | 2295 |         u32 val;
       |      |             ^~~
       |      |             |
       |      |             (1) use of uninitialized value '<unknown>' here
       |
   drivers/media/i2c/hi847.c: In function 'hi847_set_ctrl_hflip':
   drivers/media/i2c/hi847.c:2375:13: warning: use of uninitialized value 
'<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]
    2375 |         u32 val;
         |             ^~~
     'hi847_set_ctrl_hflip': event 1
       |
       | 2375 |         u32 val;
       |      |             ^~~
       |      |             |
       |      |             (1) use of uninitialized value '<unknown>' here
       |
   drivers/media/i2c/hi847.c: In function 'hi847_set_ctrl_vflip':
   drivers/media/i2c/hi847.c:2394:13: warning: use of uninitialized value 
'<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]
    2394 |         u32 val;
         |             ^~~
     'hi847_set_ctrl_vflip': event 1
       |
       | 2394 |         u32 val;
       |      |             ^~~
       |      |             |
       |      |             (1) use of uninitialized value '<unknown>' here
       |
   drivers/media/i2c/hi847.c: In function 'hi847_identify_module':
   drivers/media/i2c/hi847.c:2822:13: warning: use of uninitialized value 
'<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]
    2822 |         u32 val;
         |             ^~~
     'hi847_identify_module': event 1
       |
       | 2822 |         u32 val;
       |      |             ^~~
       |      |             |
       |      |             (1) use of uninitialized value '<unknown>' here
       |
   drivers/media/i2c/hi847.c: In function 'hi847_check_hwcfg':
   drivers/media/i2c/hi847.c:2845:13: warning: use of uninitialized value 
'<unknown>' [CWE-457] [-Wanalyzer-use-of-uninitialized-value]
    2845 |         u32 mclk;
         |             ^~~~
     'hi847_check_hwcfg': event 1
       |
       | 2845 |         u32 mclk;
       |      |             ^~~~
       |      |             |
       |      |             (1) use of uninitialized value '<unknown>' here
       |

vim +2295 drivers/media/i2c/hi847.c

da15b409ef4c56 Shawn Tu 2022-01-11  2291  
da15b409ef4c56 Shawn Tu 2022-01-11  2292  static int hi847_test_pattern(struct 
hi847 *hi847, u32 pattern)
da15b409ef4c56 Shawn Tu 2022-01-11  2293  {
da15b409ef4c56 Shawn Tu 2022-01-11  2294        int ret;
da15b409ef4c56 Shawn Tu 2022-01-11 @2295        u32 val;
da15b409ef4c56 Shawn Tu 2022-01-11  2296  
da15b409ef4c56 Shawn Tu 2022-01-11  2297        if (pattern) {
da15b409ef4c56 Shawn Tu 2022-01-11  2298                ret = 
hi847_read_reg(hi847, HI847_REG_ISP,
da15b409ef4c56 Shawn Tu 2022-01-11  2299                                     
HI847_REG_VALUE_16BIT, &val);
da15b409ef4c56 Shawn Tu 2022-01-11  2300                if (ret)
da15b409ef4c56 Shawn Tu 2022-01-11  2301                        return ret;
da15b409ef4c56 Shawn Tu 2022-01-11  2302  
da15b409ef4c56 Shawn Tu 2022-01-11  2303                ret = 
hi847_write_reg(hi847, HI847_REG_ISP,
da15b409ef4c56 Shawn Tu 2022-01-11  2304                                      
HI847_REG_VALUE_16BIT,
da15b409ef4c56 Shawn Tu 2022-01-11  2305                                      
val | HI847_REG_ISP_TPG_EN);
da15b409ef4c56 Shawn Tu 2022-01-11  2306                if (ret)
da15b409ef4c56 Shawn Tu 2022-01-11  2307                        return ret;
da15b409ef4c56 Shawn Tu 2022-01-11  2308        }
da15b409ef4c56 Shawn Tu 2022-01-11  2309  
da15b409ef4c56 Shawn Tu 2022-01-11  2310        ret = hi847_read_reg(hi847, 
HI847_REG_TEST_PATTERN,
da15b409ef4c56 Shawn Tu 2022-01-11  2311                             
HI847_REG_VALUE_16BIT, &val);
da15b409ef4c56 Shawn Tu 2022-01-11  2312        if (ret)
da15b409ef4c56 Shawn Tu 2022-01-11  2313                return ret;
da15b409ef4c56 Shawn Tu 2022-01-11  2314  
da15b409ef4c56 Shawn Tu 2022-01-11  2315        return hi847_write_reg(hi847, 
HI847_REG_TEST_PATTERN,
da15b409ef4c56 Shawn Tu 2022-01-11  2316                               
HI847_REG_VALUE_16BIT, val | pattern << 8);
da15b409ef4c56 Shawn Tu 2022-01-11  2317  }
da15b409ef4c56 Shawn Tu 2022-01-11  2318  

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