All of lore.kernel.org
 help / color / mirror / Atom feed
* [hverkuil-media:for-v5.14j 4/9] drivers/media/i2c/mt9v111.c:803:11: error: 'cfg' undeclared
@ 2021-06-10 20:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-10 20:42 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3204 bytes --]

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@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@jmondi.org>
:::::: CC: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37932 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-10 20:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-10 20:42 [hverkuil-media:for-v5.14j 4/9] drivers/media/i2c/mt9v111.c:803:11: error: 'cfg' undeclared 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.