All of lore.kernel.org
 help / color / mirror / Atom feed
* [sailus-media-tree:metadata 70/105] drivers/media/i2c/ov2740.c:759:9: error: call to undeclared function 'v4l2_subdev_sensor_fll_llp_set'; ISO C99 and later do not support implicit function declarations
@ 2026-07-03  3:20 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-03  3:20 UTC (permalink / raw)
  To: Sakari Ailus; +Cc: llvm, oe-kbuild-all, linux-media

tree:   git://linuxtv.org/sailus/media_tree.git metadata
head:   a6d4ce993bcd76851cfc7f28cc33aac011a30fa9
commit: d9f13ba7fd6bf9278ac1eeb18c0191bbfdb78cd1 [70/105] media: ov2740: Add support for FLL and LLP controls
config: sparc64-allmodconfig (https://download.01.org/0day-ci/archive/20260703/202607031103.hxGeHth5-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260703/202607031103.hxGeHth5-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607031103.hxGeHth5-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/media/i2c/ov2740.c:759:9: error: call to undeclared function 'v4l2_subdev_sensor_fll_llp_set'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     759 |                 ret = v4l2_subdev_sensor_fll_llp_set(ov2740->fll, ov2740->vblank,
         |                       ^
   drivers/media/i2c/ov2740.c:759:9: note: did you mean 'v4l2_sensor_fll_llp_set'?
   include/media/v4l2-common.h:782:5: note: 'v4l2_sensor_fll_llp_set' declared here
     782 | int v4l2_sensor_fll_llp_set(struct v4l2_ctrl *fll, struct v4l2_ctrl *vblank,
         |     ^
   1 error generated.


vim +/v4l2_subdev_sensor_fll_llp_set +759 drivers/media/i2c/ov2740.c

   740	
   741	static int ov2740_set_ctrl(struct v4l2_ctrl *ctrl)
   742	{
   743		struct ov2740 *ov2740 = container_of(ctrl->handler,
   744						     struct ov2740, ctrl_handler);
   745		int ret = 0;
   746	
   747		/* Propagate change of current control to all related controls */
   748		switch (ctrl->id) {
   749		case V4L2_CID_FRAME_LENGTH_LINES:
   750		case V4L2_CID_VBLANK:
   751		case V4L2_CID_LINE_LENGTH_PIXELS:
   752		case V4L2_CID_HBLANK: {
   753			struct v4l2_subdev_state *state =
   754				v4l2_subdev_get_locked_active_state(&ov2740->sd);
   755			const struct v4l2_mbus_framefmt *format =
   756				v4l2_subdev_state_get_format(state, OV2740_PAD_SOURCE,
   757							     OV2740_STREAM_PIXEL);
   758	
 > 759			ret = v4l2_subdev_sensor_fll_llp_set(ov2740->fll, ov2740->vblank,
   760							     ov2740->llp, ov2740->hblank,
   761							     ov2740->exposure, format,
   762							     ctrl, &ov2740->setting_ctrl,
   763							     OV2740_EXPOSURE_MAX_MARGIN);
   764			if (ret)
   765				return ret;
   766		}
   767		}
   768	
   769		/* V4L2 controls values will be applied only when power is already up */
   770		if (!pm_runtime_get_if_in_use(ov2740->dev))
   771			return 0;
   772	
   773		switch (ctrl->id) {
   774		case V4L2_CID_ANALOGUE_GAIN:
   775			ret = ov2740_write_reg(ov2740, OV2740_REG_ANALOG_GAIN, 2,
   776					       ctrl->val);
   777			break;
   778	
   779		case V4L2_CID_DIGITAL_GAIN:
   780			ret = ov2740_update_digital_gain(ov2740, ctrl->val);
   781			break;
   782	
   783		case V4L2_CID_EXPOSURE:
   784			/* 4 least significant bits of expsoure are fractional part */
   785			ret = ov2740_write_reg(ov2740, OV2740_REG_EXPOSURE, 3,
   786					       ctrl->val << 4);
   787			break;
   788	
   789		case V4L2_CID_VBLANK:
   790			break;
   791	
   792		case V4L2_CID_FRAME_LENGTH_LINES:
   793			ret = ov2740_write_reg(ov2740, OV2740_REG_VTS, 2, ctrl->val);
   794			break;
   795	
   796		case V4L2_CID_TEST_PATTERN:
   797			ret = ov2740_test_pattern(ov2740, ctrl->val);
   798			break;
   799	
   800		default:
   801			ret = -EINVAL;
   802			break;
   803		}
   804	
   805		pm_runtime_put(ov2740->dev);
   806	
   807		return ret;
   808	}
   809	

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

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

only message in thread, other threads:[~2026-07-03  3:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-03  3:20 [sailus-media-tree:metadata 70/105] drivers/media/i2c/ov2740.c:759:9: error: call to undeclared function 'v4l2_subdev_sensor_fll_llp_set'; ISO C99 and later do not support implicit function declarations 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.