Hi Arnd, [auto build test ERROR on staging/staging-testing] [also build test ERROR on next-20170328] [cannot apply to linuxtv-media/master v4.11-rc4] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Arnd-Bergmann/staging-atomisp-avoid-false-positive-maybe-uninitialized-warning/20170329-023715 config: i386-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): drivers/staging/media/atomisp/i2c/mt9m114.c: In function 'mt9m114_get_fmt': >> drivers/staging/media/atomisp/i2c/mt9m114.c:818:25: error: unused variable 'dev' [-Werror=unused-variable] struct mt9m114_device *dev = to_mt9m114_sensor(sd); ^~~ drivers/staging/media/atomisp/i2c/mt9m114.c: In function 'mt9m114_s_exposure_selection': drivers/staging/media/atomisp/i2c/mt9m114.c:1179:25: error: unused variable 'dev' [-Werror=unused-variable] struct mt9m114_device *dev = to_mt9m114_sensor(sd); ^~~ cc1: all warnings being treated as errors vim +/dev +818 drivers/staging/media/atomisp/i2c/mt9m114.c a49d2536 Alan Cox 2017-02-17 812 a49d2536 Alan Cox 2017-02-17 813 static int mt9m114_get_fmt(struct v4l2_subdev *sd, a49d2536 Alan Cox 2017-02-17 814 struct v4l2_subdev_pad_config *cfg, a49d2536 Alan Cox 2017-02-17 815 struct v4l2_subdev_format *format) a49d2536 Alan Cox 2017-02-17 816 { a49d2536 Alan Cox 2017-02-17 817 struct v4l2_mbus_framefmt *fmt = &format->format; a49d2536 Alan Cox 2017-02-17 @818 struct mt9m114_device *dev = to_mt9m114_sensor(sd); a49d2536 Alan Cox 2017-02-17 819 int width, height; a49d2536 Alan Cox 2017-02-17 820 int ret; a49d2536 Alan Cox 2017-02-17 821 if (format->pad) :::::: The code at line 818 was first introduced by commit :::::: a49d25364dfb9f8a64037488a39ab1f56c5fa419 staging/atomisp: Add support for the Intel IPU v2 :::::: TO: Alan Cox <alan@xxxxxxxxxxxxxxx> :::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip