[sailus-media-tree:master 32/34] drivers/media/i2c/adv7183.c:446:18: error: implicit declaration of function 'v4l2_subdev_state_get_format'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://linuxtv.org/sailus/media_tree.git master
head:   62bdf633090d684c3ac6d3b46e926c0ac8cef466
commit: c2c00a388aa086ffb18e44c3ba35db764a9dce3f [32/34] media: v4l: subdev: Switch to stream-aware state functions
config: i386-randconfig-062-20231110 (https://download.01.org/0day-ci/archive/20231110/202311100616.h7UgoA0S-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231110/202311100616.h7UgoA0S-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311100616.h7UgoA0S-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   drivers/media/i2c/adv7183.c: In function 'adv7183_set_fmt':
>> drivers/media/i2c/adv7183.c:446:18: error: implicit declaration of function 'v4l2_subdev_state_get_format' [-Werror=implicit-function-declaration]
     446 |                 *v4l2_subdev_state_get_format(sd_state, 0) = *fmt;
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/media/i2c/adv7183.c:446:17: error: invalid type argument of unary '*' (have 'int')
     446 |                 *v4l2_subdev_state_get_format(sd_state, 0) = *fmt;
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   drivers/media/i2c/tw9910.c: In function 'tw9910_set_fmt':
>> drivers/media/i2c/tw9910.c:832:10: error: implicit declaration of function 'v4l2_subdev_state_get_format' [-Werror=implicit-function-declaration]
     832 |         *v4l2_subdev_state_get_format(sd_state, 0) = *mf;
         |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/media/i2c/tw9910.c:832:9: error: invalid type argument of unary '*' (have 'int')
     832 |         *v4l2_subdev_state_get_format(sd_state, 0) = *mf;
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/v4l2_subdev_state_get_format +446 drivers/media/i2c/adv7183.c

   421	
   422	static int adv7183_set_fmt(struct v4l2_subdev *sd,
   423			struct v4l2_subdev_state *sd_state,
   424			struct v4l2_subdev_format *format)
   425	{
   426		struct adv7183 *decoder = to_adv7183(sd);
   427		struct v4l2_mbus_framefmt *fmt = &format->format;
   428	
   429		if (format->pad)
   430			return -EINVAL;
   431	
   432		fmt->code = MEDIA_BUS_FMT_UYVY8_2X8;
   433		fmt->colorspace = V4L2_COLORSPACE_SMPTE170M;
   434		if (decoder->std & V4L2_STD_525_60) {
   435			fmt->field = V4L2_FIELD_SEQ_TB;
   436			fmt->width = 720;
   437			fmt->height = 480;
   438		} else {
   439			fmt->field = V4L2_FIELD_SEQ_BT;
   440			fmt->width = 720;
   441			fmt->height = 576;
   442		}
   443		if (format->which == V4L2_SUBDEV_FORMAT_ACTIVE)
   444			decoder->fmt = *fmt;
   445		else
 > 446			*v4l2_subdev_state_get_format(sd_state, 0) = *fmt;
   447		return 0;
   448	}
   449	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux