[lkml]   [2017]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] staging: atomisp: avoid false-positive maybe-uninitialized warning
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]

config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
# 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 <>
:::::: CC: Greg Kroah-Hartman <>

0-DAY kernel test infrastructure Open Source Technology Center Intel Corporation
[unhandled content-type:application/gzip]
 \ /
  Last update: 2017-03-28 22:13    [W:0.056 / U:0.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site