* drivers/media/i2c/hi846.c:1320:12: warning: use of uninitialized value '<unknown>' [CWE-457]
@ 2022-07-25 16:58 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-07-25 16:58 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 5306 bytes --]
::::::
:::::: 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: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Martin Kepplinger <martin.kepplinger@puri.sm>
CC: Mauro Carvalho Chehab <mchehab@kernel.org>
CC: linux-media(a)vger.kernel.org
CC: Pavel Machek <pavel@ucw.cz>
CC: Sakari Ailus <sakari.ailus@linux.intel.com>
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/202207231330.KP4Aw8KT-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=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 <lkp@intel.com>
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* drivers/media/i2c/hi846.c:1320:12: warning: use of uninitialized value '<unknown>' [CWE-457]
@ 2022-07-19 13:21 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-07-19 13:21 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 5286 bytes --]
::::::
:::::: 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: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Martin Kepplinger <martin.kepplinger@puri.sm>
CC: Mauro Carvalho Chehab <mchehab@kernel.org>
CC: linux-media(a)vger.kernel.org
CC: Pavel Machek <pavel@ucw.cz>
CC: Sakari Ailus <sakari.ailus@linux.intel.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ca85855bdcae8f84f1512e88b4c75009ea17ea2f
commit: e8c0882685f9152f0d729664a12bcbe749cb7736 media: i2c: add driver for the SK Hynix Hi-846 8M pixel camera
date: 9 months ago
:::::: branch date: 13 hours ago
:::::: commit date: 9 months ago
config: arm-randconfig-c002-20220718 (https://download.01.org/0day-ci/archive/20220719/202207192102.CQUQWLVt-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=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 <lkp@intel.com>
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
e8c0882685f915 Martin Kepplinger 2021-09-06 1316
e8c0882685f915 Martin Kepplinger 2021-09-06 1317 static int hi846_test_pattern(struct hi846 *hi846, u32 pattern)
e8c0882685f915 Martin Kepplinger 2021-09-06 1318 {
e8c0882685f915 Martin Kepplinger 2021-09-06 1319 int ret;
e8c0882685f915 Martin Kepplinger 2021-09-06 @1320 u8 val;
e8c0882685f915 Martin Kepplinger 2021-09-06 1321
e8c0882685f915 Martin Kepplinger 2021-09-06 1322 if (pattern) {
e8c0882685f915 Martin Kepplinger 2021-09-06 1323 ret = hi846_read_reg(hi846, HI846_REG_ISP, &val);
e8c0882685f915 Martin Kepplinger 2021-09-06 1324 if (ret)
e8c0882685f915 Martin Kepplinger 2021-09-06 1325 return ret;
e8c0882685f915 Martin Kepplinger 2021-09-06 1326
e8c0882685f915 Martin Kepplinger 2021-09-06 1327 ret = hi846_write_reg(hi846, HI846_REG_ISP,
e8c0882685f915 Martin Kepplinger 2021-09-06 1328 val | HI846_REG_ISP_TPG_EN);
e8c0882685f915 Martin Kepplinger 2021-09-06 1329 if (ret)
e8c0882685f915 Martin Kepplinger 2021-09-06 1330 return ret;
e8c0882685f915 Martin Kepplinger 2021-09-06 1331 }
e8c0882685f915 Martin Kepplinger 2021-09-06 1332
e8c0882685f915 Martin Kepplinger 2021-09-06 1333 return hi846_write_reg(hi846, HI846_REG_TEST_PATTERN, pattern);
e8c0882685f915 Martin Kepplinger 2021-09-06 1334 }
e8c0882685f915 Martin Kepplinger 2021-09-06 1335
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-25 16:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-25 16:58 drivers/media/i2c/hi846.c:1320:12: warning: use of uninitialized value '<unknown>' [CWE-457] kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2022-07-19 13:21 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.