Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	linux-media@vger.kernel.org
Subject: [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
Date: Fri, 03 Jul 2026 11:20:37 +0800	[thread overview]
Message-ID: <202607031103.hxGeHth5-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-07-03  3:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202607031103.hxGeHth5-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-media@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sakari.ailus@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox