mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Wenyou Yang <wenyou.yang@microchip.com>
Cc: kbuild-all@01.org,
	Mauro Carvalho Chehab <mchehab@s-opensource.com>,
	Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	linux-kernel@vger.kernel.org,
	Nicolas Ferre <nicolas.ferre@microchip.com>,
	devicetree@vger.kernel.org, Sakari Ailus <sakari.ailus@iki.fi>,
	Jonathan Corbet <corbet@lwn.net>,
	Hans Verkuil <hverkuil@xs4all.nl>,
	linux-arm-kernel@lists.infradead.org,
	Linux Media Mailing List <linux-media@vger.kernel.org>,
	Wenyou Yang <wenyou.yang@microchip.com>,
	Songjun Wu <songjun.wu@microchip.com>
Subject: Re: [PATCH v2 1/2] media: i2c: Add the ov7740 image sensor driver
Date: Mon, 30 Oct 2017 14:57:00 +0800	[thread overview]
Message-ID: <201710301443.I7CA4dcJ%fengguang.wu@intel.com> (raw)
In-Reply-To: <20171027074220.23839-2-wenyou.yang@microchip.com>

[-- Attachment #1: Type: text/plain, Size: 3203 bytes --]

Hi Wenyou,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on v4.14-rc7 next-20171018]
[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/Wenyou-Yang/media-i2c-Add-the-ov7740-image-sensor-driver/20171030-140347
base:   git://linuxtv.org/media_tree.git master
config: blackfin-allyesconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=blackfin 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   In file included from drivers/media//i2c/ov7740.c:21:0:
   drivers/media//i2c/ov7740.c: In function 'ov7740_set_ctrl':
>> include/linux/regmap.h:73:2: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized]
     regmap_update_bits_base(map, reg, mask, val, NULL, false, false)
     ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/media//i2c/ov7740.c:512:5: note: 'val' was declared here
     u8 val;
        ^~~
--
   In file included from drivers/media/i2c/ov7740.c:21:0:
   drivers/media/i2c/ov7740.c: In function 'ov7740_set_ctrl':
>> include/linux/regmap.h:73:2: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized]
     regmap_update_bits_base(map, reg, mask, val, NULL, false, false)
     ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/media/i2c/ov7740.c:512:5: note: 'val' was declared here
     u8 val;
        ^~~

vim +/val +73 include/linux/regmap.h

8019ff6cf Nariman Poushin   2015-07-16  71  
ca7a94464 Kuninori Morimoto 2016-02-15  72  #define	regmap_update_bits(map, reg, mask, val) \
ca7a94464 Kuninori Morimoto 2016-02-15 @73  	regmap_update_bits_base(map, reg, mask, val, NULL, false, false)
30ed9cb7a Kuninori Morimoto 2016-02-15  74  #define	regmap_update_bits_async(map, reg, mask, val)\
30ed9cb7a Kuninori Morimoto 2016-02-15  75  	regmap_update_bits_base(map, reg, mask, val, NULL, true, false)
98c2dc486 Kuninori Morimoto 2016-02-15  76  #define	regmap_update_bits_check(map, reg, mask, val, change)\
98c2dc486 Kuninori Morimoto 2016-02-15  77  	regmap_update_bits_base(map, reg, mask, val, change, false, false)
89d8d4b83 Kuninori Morimoto 2016-02-15  78  #define	regmap_update_bits_check_async(map, reg, mask, val, change)\
89d8d4b83 Kuninori Morimoto 2016-02-15  79  	regmap_update_bits_base(map, reg, mask, val, change, true, false)
ca7a94464 Kuninori Morimoto 2016-02-15  80  

:::::: The code at line 73 was first introduced by commit
:::::: ca7a94464b5457a8dc5add19f6fc3bea59d6193f regmap: merge regmap_update_bits() into macro

:::::: TO: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
:::::: CC: Mark Brown <broonie@kernel.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 46053 bytes --]

  reply	other threads:[~2017-10-30  6:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-27  7:42 [PATCH v2 0/2] media: ov7740: Add a V4L2 sensor-level driver Wenyou Yang
2017-10-27  7:42 ` [PATCH v2 1/2] media: i2c: Add the ov7740 image sensor driver Wenyou Yang
2017-10-30  6:57   ` kbuild test robot [this message]
2017-10-30 10:02   ` kbuild test robot
2017-10-27  7:42 ` [PATCH v2 2/2] media: ov7740: Document device tree bindings Wenyou Yang
2017-10-27 10:59   ` Sakari Ailus
2017-10-30  1:38     ` Yang, Wenyou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201710301443.I7CA4dcJ%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=corbet@lwn.net \
    --cc=devicetree@vger.kernel.org \
    --cc=hverkuil@xs4all.nl \
    --cc=kbuild-all@01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mchehab@s-opensource.com \
    --cc=nicolas.ferre@microchip.com \
    --cc=robh+dt@kernel.org \
    --cc=sakari.ailus@iki.fi \
    --cc=songjun.wu@microchip.com \
    --cc=wenyou.yang@microchip.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®