tree:
git://linuxtv.org/hverkuil/media_tree.git for-v5.14j
head: bddff7e40c01e2f4e32e24f9ea37ce09b0ffc71e
commit: 5253e85d5fac07a883136fd2fccf8a101a4f49b5 [4/9] media: i2c: changes for subdev-wide
state struct
config: i386-randconfig-s032-20210610 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
git remote add hverkuil-media
git://linuxtv.org/hverkuil/media_tree.git
git fetch --no-tags hverkuil-media for-v5.14j
git checkout 5253e85d5fac07a883136fd2fccf8a101a4f49b5
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/media/i2c/mt9v111.c: In function '__mt9v111_get_pad_format':
> drivers/media/i2c/mt9v111.c:803:11: error: 'cfg'
undeclared (first use in this function)
803 | return &cfg->try_fmt;
| ^~~
drivers/media/i2c/mt9v111.c:803:11: note: each undeclared identifier is reported only
once for each function it appears in
vim +/cfg +803 drivers/media/i2c/mt9v111.c
aab7ed1c392703 Jacopo Mondi 2018-07-25 791
aab7ed1c392703 Jacopo Mondi 2018-07-25 792 static struct v4l2_mbus_framefmt
*__mt9v111_get_pad_format(
aab7ed1c392703 Jacopo Mondi 2018-07-25 793 struct mt9v111_dev *mt9v111,
5253e85d5fac07 Tomi Valkeinen 2021-06-10 794 struct v4l2_subdev_state *sd_state,
aab7ed1c392703 Jacopo Mondi 2018-07-25 795 unsigned int pad,
aab7ed1c392703 Jacopo Mondi 2018-07-25 796 enum v4l2_subdev_format_whence which)
aab7ed1c392703 Jacopo Mondi 2018-07-25 797 {
aab7ed1c392703 Jacopo Mondi 2018-07-25 798 switch (which) {
aab7ed1c392703 Jacopo Mondi 2018-07-25 799 case V4L2_SUBDEV_FORMAT_TRY:
484f9b372dd8da Jacopo Mondi 2018-08-07 800 #if
IS_ENABLED(CONFIG_VIDEO_V4L2_SUBDEV_API)
5253e85d5fac07 Tomi Valkeinen 2021-06-10 801 return
v4l2_subdev_get_try_format(&mt9v111->sd, sd_state, pad);
aab7ed1c392703 Jacopo Mondi 2018-07-25 802 #else
aab7ed1c392703 Jacopo Mondi 2018-07-25 @803 return &cfg->try_fmt;
aab7ed1c392703 Jacopo Mondi 2018-07-25 804 #endif
aab7ed1c392703 Jacopo Mondi 2018-07-25 805 case V4L2_SUBDEV_FORMAT_ACTIVE:
aab7ed1c392703 Jacopo Mondi 2018-07-25 806 return &mt9v111->fmt;
aab7ed1c392703 Jacopo Mondi 2018-07-25 807 default:
aab7ed1c392703 Jacopo Mondi 2018-07-25 808 return NULL;
aab7ed1c392703 Jacopo Mondi 2018-07-25 809 }
aab7ed1c392703 Jacopo Mondi 2018-07-25 810 }
aab7ed1c392703 Jacopo Mondi 2018-07-25 811
:::::: The code at line 803 was first introduced by commit
:::::: aab7ed1c392703604fbdc5bd5005dfb61a0b32f9 media: i2c: Add driver for Aptina MT9V111
:::::: TO: Jacopo Mondi <jacopo+renesas(a)jmondi.org>
:::::: CC: Mauro Carvalho Chehab <mchehab+samsung(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org