[linux-stable-rc:linux-4.1.y 722/990] drivers/media/i2c/ov2659.c:1054:8: error: implicit declaration of function 'v4l2_subdev_get_try_format'

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

 



Hi,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.1.y
head:   888172862fa78505c4e4674c205a06586443d83f
commit: f320793e52aee78f0fbb8bcaf10e6614d2e67bfc [722/990] compiler-gcc: integrate the various compiler-gcc[345].h files
config: i386-randconfig-s1-201625 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout f320793e52aee78f0fbb8bcaf10e6614d2e67bfc
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   drivers/hid/hid-input.c: In function 'hidinput_hid_event':
>> drivers/hid/hid-input.c:1163:67: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
     if (usage->type == EV_KEY && !!test_bit(usage->code, input->key) != value)
                                                                      ^~
--
   drivers/media/i2c/ov2659.c: In function 'ov2659_get_fmt':
>> drivers/media/i2c/ov2659.c:1054:8: error: implicit declaration of function 'v4l2_subdev_get_try_format' [-Werror=implicit-function-declaration]
      mf = v4l2_subdev_get_try_format(sd, cfg, 0);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/i2c/ov2659.c:1054:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
      mf = v4l2_subdev_get_try_format(sd, cfg, 0);
         ^
   drivers/media/i2c/ov2659.c: In function 'ov2659_set_fmt':
   drivers/media/i2c/ov2659.c:1129:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
      mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad);
         ^
   drivers/media/i2c/ov2659.c: In function 'ov2659_open':
>> drivers/media/i2c/ov2659.c:1264:38: error: 'struct v4l2_subdev_fh' has no member named 'pad'
        v4l2_subdev_get_try_format(sd, fh->pad, 0);
                                         ^~
   cc1: some warnings being treated as errors

vim +/v4l2_subdev_get_try_format +1054 drivers/media/i2c/ov2659.c

c4c0283a Benoit Parrot 2015-03-20  1038  	fse->min_height = fse->max_height;
c4c0283a Benoit Parrot 2015-03-20  1039  
c4c0283a Benoit Parrot 2015-03-20  1040  	return 0;
c4c0283a Benoit Parrot 2015-03-20  1041  }
c4c0283a Benoit Parrot 2015-03-20  1042  
c4c0283a Benoit Parrot 2015-03-20  1043  static int ov2659_get_fmt(struct v4l2_subdev *sd,
c4c0283a Benoit Parrot 2015-03-20  1044  			  struct v4l2_subdev_pad_config *cfg,
c4c0283a Benoit Parrot 2015-03-20  1045  			  struct v4l2_subdev_format *fmt)
c4c0283a Benoit Parrot 2015-03-20  1046  {
c4c0283a Benoit Parrot 2015-03-20  1047  	struct i2c_client *client = v4l2_get_subdevdata(sd);
c4c0283a Benoit Parrot 2015-03-20  1048  	struct ov2659 *ov2659 = to_ov2659(sd);
c4c0283a Benoit Parrot 2015-03-20  1049  	struct v4l2_mbus_framefmt *mf;
c4c0283a Benoit Parrot 2015-03-20  1050  
c4c0283a Benoit Parrot 2015-03-20  1051  	dev_dbg(&client->dev, "ov2659_get_fmt\n");
c4c0283a Benoit Parrot 2015-03-20  1052  
c4c0283a Benoit Parrot 2015-03-20  1053  	if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) {
c4c0283a Benoit Parrot 2015-03-20 @1054  		mf = v4l2_subdev_get_try_format(sd, cfg, 0);
c4c0283a Benoit Parrot 2015-03-20  1055  		mutex_lock(&ov2659->lock);
c4c0283a Benoit Parrot 2015-03-20  1056  		fmt->format = *mf;
c4c0283a Benoit Parrot 2015-03-20  1057  		mutex_unlock(&ov2659->lock);
c4c0283a Benoit Parrot 2015-03-20  1058  		return 0;
c4c0283a Benoit Parrot 2015-03-20  1059  	}
c4c0283a Benoit Parrot 2015-03-20  1060  
c4c0283a Benoit Parrot 2015-03-20  1061  	mutex_lock(&ov2659->lock);
c4c0283a Benoit Parrot 2015-03-20  1062  	fmt->format = ov2659->format;

:::::: The code at line 1054 was first introduced by commit
:::::: c4c0283ab3cd78f8c53e708f8e75e8ed80468a31 [media] media: i2c: add support for omnivision's ov2659 sensor

:::::: TO: Benoit Parrot <bparrot@xxxxxx>
:::::: CC: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]