tree:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: 541ec9a6995c3dd881d6f0b63cc714a08ded457d
commit: fde8d4e7d0ab83be0e5dd86a0a2bde55781f2161 [7552/10213] media: v4l2-subdev: add
subdev-wide state struct
config: i386-randconfig-s002-20211207
(
https://download.01.org/0day-ci/archive/20211208/202112081946.2klPQ8aO-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
git remote add ti
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-rt-linux-5.10.y
git checkout fde8d4e7d0ab83be0e5dd86a0a2bde55781f2161
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir
ARCH=i386 SHELL=/bin/bash
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,
fde8d4e7d0ab83 Tomi Valkeinen 2021-07-14 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)
fde8d4e7d0ab83 Tomi Valkeinen 2021-07-14 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