tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   0629b0dc1afeaf6262650e53b454d0b30bb0833e
commit: 894de53b4938f6e4eb5dd0435c60cc87b5747855 [9678/10088] media: ov5670: 
Use v4l2_find_nearest_size
config: i386-randconfig-i0-03221101 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 894de53b4938f6e4eb5dd0435c60cc87b5747855
        # save the attached .config to linux build tree
        make ARCH=i386 

Note: the linux-next/master HEAD 0629b0dc1afeaf6262650e53b454d0b30bb0833e 
builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

   drivers/media/i2c/ov5670.c: In function 'ov5670_set_pad_format':
   drivers/media/i2c/ov5670.c:2233:48: error: macro "v4l2_find_nearest_size" 
requires 6 arguments, but only 5 given
              fmt->format.width, fmt->format.height);
                                                   ^
>> drivers/media/i2c/ov5670.c:2232:9: error: 'v4l2_find_nearest_size' 
>> undeclared (first use in this function); did you mean 
>> '__v4l2_find_nearest_size'?
     mode = v4l2_find_nearest_size(supported_modes, width, height,
            ^~~~~~~~~~~~~~~~~~~~~~
            __v4l2_find_nearest_size
   drivers/media/i2c/ov5670.c:2232:9: note: each undeclared identifier is 
reported only once for each function it appears in

vim +2232 drivers/media/i2c/ov5670.c

  2218  
  2219  static int ov5670_set_pad_format(struct v4l2_subdev *sd,
  2220                                   struct v4l2_subdev_pad_config *cfg,
  2221                                   struct v4l2_subdev_format *fmt)
  2222  {
  2223          struct ov5670 *ov5670 = to_ov5670(sd);
  2224          const struct ov5670_mode *mode;
  2225          s32 vblank_def;
  2226          s32 h_blank;
  2227  
  2228          mutex_lock(&ov5670->mutex);
  2229  
  2230          fmt->format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
  2231  
> 2232          mode = v4l2_find_nearest_size(supported_modes, width, height,
> 2233                                        fmt->format.width, 
> fmt->format.height);
  2234          ov5670_update_pad_format(mode, fmt);
  2235          if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) {
  2236                  *v4l2_subdev_get_try_format(sd, cfg, fmt->pad) = 
fmt->format;
  2237          } else {
  2238                  ov5670->cur_mode = mode;
  2239                  __v4l2_ctrl_s_ctrl(ov5670->link_freq, 
mode->link_freq_index);
  2240                  __v4l2_ctrl_s_ctrl_int64(
  2241                          ov5670->pixel_rate,
  2242                          
link_freq_configs[mode->link_freq_index].pixel_rate);
  2243                  /* Update limits and set FPS to default */
  2244                  vblank_def = ov5670->cur_mode->vts_def -
  2245                               ov5670->cur_mode->height;
  2246                  __v4l2_ctrl_modify_range(
  2247                          ov5670->vblank,
  2248                          ov5670->cur_mode->vts_min - 
ov5670->cur_mode->height,
  2249                          OV5670_VTS_MAX - ov5670->cur_mode->height, 1,
  2250                          vblank_def);
  2251                  __v4l2_ctrl_s_ctrl(ov5670->vblank, vblank_def);
  2252                  h_blank = OV5670_FIXED_PPL - ov5670->cur_mode->width;
  2253                  __v4l2_ctrl_modify_range(ov5670->hblank, h_blank, 
h_blank, 1,
  2254                                           h_blank);
  2255          }
  2256  
  2257          mutex_unlock(&ov5670->mutex);
  2258  
  2259          return 0;
  2260  }
  2261  

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

Reply via email to