[sailus-media-tree:metadata 31/36] drivers/media/i2c/ccs/ccs-core.c:2222:22: warning: unused variable 'i'

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

 



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@xxxxxxxxx/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@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/202310101832.SmsDPmoW-lkp@xxxxxxxxx/

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



[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