tree:   git://linuxtv.org/mchehab/experimental tvp5150-5
head:   c223c451df23ac71a844d05aab65ede057b70eb0
commit: bc93ce496fa909d8fa9496c93d36e9ea413a9065 [135/138] tvp5150: add 
FORMAT_TRY support for get/set selection handlers
config: x86_64-randconfig-s5-09181631 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout bc93ce496fa909d8fa9496c93d36e9ea413a9065
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/media/i2c/tvp5150.c:72:32: error: 'TVP5150_NUM_PADS' undeclared here 
(not in a function); did you mean 'TVP5150_H_MAX'?
     struct device_node *endpoints[TVP5150_NUM_PADS + 1];
                                   ^~~~~~~~~~~~~~~~
                                   TVP5150_H_MAX
   drivers/media/i2c/tvp5150.c: In function '__tvp5150_get_pad_crop':
>> drivers/media/i2c/tvp5150.c:1018:10: error: implicit declaration of function 
>> 'v4l2_subdev_get_try_crop'; did you mean 'v4l2_subdev_has_op'? 
>> [-Werror=implicit-function-declaration]
      return v4l2_subdev_get_try_crop(&decoder->sd, cfg, pad);
             ^~~~~~~~~~~~~~~~~~~~~~~~
             v4l2_subdev_has_op
   drivers/media/i2c/tvp5150.c:1018:10: warning: return makes pointer from 
integer without a cast [-Wint-conversion]
      return v4l2_subdev_get_try_crop(&decoder->sd, cfg, pad);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/media/i2c/tvp5150.c: In function 'tvp5150_fill_fmt':
   drivers/media/i2c/tvp5150.c:1034:33: error: 'TVP5150_PAD_VID_OUT' undeclared 
(first use in this function); did you mean 'TVP5150_SVIDEO'?
     if (!format || (format->pad != TVP5150_PAD_VID_OUT))
                                    ^~~~~~~~~~~~~~~~~~~
                                    TVP5150_SVIDEO
   drivers/media/i2c/tvp5150.c:1034:33: note: each undeclared identifier is 
reported only once for each function it appears in
   drivers/media/i2c/tvp5150.c: In function 'tvp5150_mc_init':
   drivers/media/i2c/tvp5150.c:1881:9: error: 'ret' undeclared (first use in 
this function); did you mean 'net'?
     return ret;
            ^~~
            net
   drivers/media/i2c/tvp5150.c:1880:1: warning: label 'out' defined but not 
used [-Wunused-label]
    out:
    ^~~
   drivers/media/i2c/tvp5150.c: In function 'tvp5150_of_valid_input':
   drivers/media/i2c/tvp5150.c:1893:7: error: 'TVP5150_PAD_AIP1A' undeclared 
(first use in this function); did you mean 'TVP5150_VDPOE'?
     case TVP5150_PAD_AIP1A:
          ^~~~~~~~~~~~~~~~~
          TVP5150_VDPOE
   drivers/media/i2c/tvp5150.c:1901:7: error: 'TVP5150_PAD_AIP1B' undeclared 
(first use in this function); did you mean 'TVP5150_PAD_AIP1A'?
     case TVP5150_PAD_AIP1B:
          ^~~~~~~~~~~~~~~~~
          TVP5150_PAD_AIP1A
   drivers/media/i2c/tvp5150.c: In function 'tvp5150_parse_dt':
   drivers/media/i2c/tvp5150.c:1945:8: error: 'TVP5150_PAD_AIP1A' undeclared 
(first use in this function); did you mean 'TVP5150_VDPOE'?
      case TVP5150_PAD_AIP1A:
           ^~~~~~~~~~~~~~~~~
           TVP5150_VDPOE
   drivers/media/i2c/tvp5150.c:1946:8: error: 'TVP5150_PAD_AIP1B' undeclared 
(first use in this function); did you mean 'TVP5150_PAD_AIP1A'?
      case TVP5150_PAD_AIP1B:
           ^~~~~~~~~~~~~~~~~
           TVP5150_PAD_AIP1A
   drivers/media/i2c/tvp5150.c:1956:8: error: 'TVP5150_PAD_VID_OUT' undeclared 
(first use in this function); did you mean 'TVP5150_PAD_AIP1B'?
      case TVP5150_PAD_VID_OUT:
           ^~~~~~~~~~~~~~~~~~~
           TVP5150_PAD_AIP1B
   drivers/media/i2c/tvp5150.c:1988:9: error: 'struct tvp5150' has no member 
named 'connectors_num'
     decoder->connectors_num = in;
            ^~
   drivers/media/i2c/tvp5150.c: In function 'tvp5150_mc_init':
   drivers/media/i2c/tvp5150.c:1882:1: warning: control reaches end of non-void 
function [-Wreturn-type]
    }
    ^
   cc1: some warnings being treated as errors

vim +1018 drivers/media/i2c/tvp5150.c

  1010  
  1011  static struct v4l2_rect *
  1012  __tvp5150_get_pad_crop(struct tvp5150 *decoder,
  1013                         struct v4l2_subdev_pad_config *cfg, unsigned int 
pad,
  1014                         enum v4l2_subdev_format_whence which)
  1015  {
  1016          switch (which) {
  1017          case V4L2_SUBDEV_FORMAT_TRY:
> 1018                  return v4l2_subdev_get_try_crop(&decoder->sd, cfg, pad);
  1019          case V4L2_SUBDEV_FORMAT_ACTIVE:
  1020                  return &decoder->rect;
  1021          default:
  1022                  return NULL;
  1023          }
  1024  }
  1025  

---
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