All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-media@vger.kernel.org
Subject: [sailus-media-tree:metadata 31/36] drivers/media/i2c/ccs/ccs-core.c:2222:22: warning: unused variable 'i'
Date: Tue, 10 Oct 2023 19:06:14 +0800	[thread overview]
Message-ID: <202310101832.SmsDPmoW-lkp@intel.com> (raw)

tree:   git://linuxtv.org/sailus/media_tree.git metadata
head:   278fe7fc8a0bdc0cc01b934edf4e2193b0dc195e
commit: f815633f0acd64a5a663a205f74db43d814c7a73 [31/36] media: ccs: Remove ccs_get_crop_compose helper
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20231010/202310101832.SmsDPmoW-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231010/202310101832.SmsDPmoW-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/202310101832.SmsDPmoW-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/media/i2c/ccs/ccs-core.c: In function 'ccs_propagate':
>> drivers/media/i2c/ccs/ccs-core.c:2222:22: warning: unused variable 'i' [-Wunused-variable]
    2222 |         unsigned int i;
         |                      ^


vim +/i +2222 drivers/media/i2c/ccs/ccs-core.c

  2212	
  2213	/* Changes require propagation only on sink pad. */
  2214	static void ccs_propagate(struct v4l2_subdev *subdev,
  2215				  struct v4l2_subdev_state *sd_state, int which,
  2216				  int target)
  2217	{
  2218		struct ccs_sensor *sensor = to_ccs_sensor(subdev);
  2219		struct ccs_subdev *ssd = to_ccs_subdev(subdev);
  2220		struct v4l2_rect *comp, *crop;
  2221		struct v4l2_mbus_framefmt *fmt;
> 2222		unsigned int i;
  2223	
  2224		comp = v4l2_subdev_get_compose_ptr(subdev, sd_state,
  2225						   ssd->sink_pad, CCS_STREAM_PIXEL);
  2226		switch (target) {
  2227		case V4L2_SEL_TGT_CROP:
  2228			crop = v4l2_subdev_get_crop_ptr(subdev, sd_state, CCS_PAD_SINK,
  2229							CCS_STREAM_PIXEL);
  2230			comp->width = crop->width;
  2231			comp->height = crop->height;
  2232			if (which == V4L2_SUBDEV_FORMAT_ACTIVE) {
  2233				if (ssd == sensor->scaler) {
  2234					sensor->scale_m = CCS_LIM(sensor, SCALER_N_MIN);
  2235					sensor->scaling_mode =
  2236						CCS_SCALING_MODE_NO_SCALING;
  2237					sensor->scaler_sink = *comp;
  2238				} else if (ssd == sensor->binner) {
  2239					sensor->binning_horizontal = 1;
  2240					sensor->binning_vertical = 1;
  2241				}
  2242			}
  2243			fallthrough;
  2244		case V4L2_SEL_TGT_COMPOSE:
  2245			crop = v4l2_subdev_get_crop_ptr(subdev, sd_state, CCS_PAD_SRC,
  2246							CCS_STREAM_PIXEL);
  2247			*crop = *comp;
  2248			fmt = v4l2_subdev_get_pad_format(subdev, sd_state, CCS_PAD_SRC);
  2249			fmt->width = comp->width;
  2250			fmt->height = comp->height;
  2251			if (which == V4L2_SUBDEV_FORMAT_ACTIVE && ssd == sensor->src)
  2252				sensor->src_src = *crop;
  2253			break;
  2254		default:
  2255			WARN_ON_ONCE(1);
  2256		}
  2257	}
  2258	

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

                 reply	other threads:[~2023-10-10 11:06 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=202310101832.SmsDPmoW-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-media@vger.kernel.org \
    --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 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.