From: kbuild test robot <fengguang.wu@intel.com>
To: Wolfram Sang <wsa@the-dreams.de>
Cc: kbuild-all@01.org, linux-i2c@vger.kernel.org
Subject: [wsa:strings/i2c 30/92] drivers/gpu/drm/msm/hdmi/hdmi_i2c.c:246:21: warning: unused variable 'dev'
Date: Sun, 10 Jul 2016 00:38:06 +0800 [thread overview]
Message-ID: <201607100004.Y6v8qsfF%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2986 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git strings/i2c
head: d7f655c88b353745a4ebb0da45a4002b2f4f353e
commit: 0afa9716717c9a8d7d5e7d960f95dbbd397716a8 [30/92] gpu: drm: msm: hdmi: hdmi_i2c: don't print error when adding adapter fails
config: arm-multi_v7_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 0afa9716717c9a8d7d5e7d960f95dbbd397716a8
# save the attached .config to linux build tree
make.cross ARCH=arm
All warnings (new ones prefixed by >>):
drivers/gpu/drm/msm/hdmi/hdmi_i2c.c: In function 'msm_hdmi_i2c_init':
>> drivers/gpu/drm/msm/hdmi/hdmi_i2c.c:246:21: warning: unused variable 'dev' [-Wunused-variable]
struct drm_device *dev = hdmi->dev;
^
vim +/dev +246 drivers/gpu/drm/msm/hdmi/hdmi_i2c.c
c8afe684 Rob Clark 2013-06-26 230 {
c8afe684 Rob Clark 2013-06-26 231 struct hdmi_i2c_adapter *hdmi_i2c = to_hdmi_i2c_adapter(i2c);
c8afe684 Rob Clark 2013-06-26 232
c8afe684 Rob Clark 2013-06-26 233 if (sw_done(hdmi_i2c))
c8afe684 Rob Clark 2013-06-26 234 wake_up_all(&hdmi_i2c->ddc_event);
c8afe684 Rob Clark 2013-06-26 235 }
c8afe684 Rob Clark 2013-06-26 236
fcda50c8 Arnd Bergmann 2016-02-22 237 void msm_hdmi_i2c_destroy(struct i2c_adapter *i2c)
c8afe684 Rob Clark 2013-06-26 238 {
c8afe684 Rob Clark 2013-06-26 239 struct hdmi_i2c_adapter *hdmi_i2c = to_hdmi_i2c_adapter(i2c);
c8afe684 Rob Clark 2013-06-26 240 i2c_del_adapter(i2c);
c8afe684 Rob Clark 2013-06-26 241 kfree(hdmi_i2c);
c8afe684 Rob Clark 2013-06-26 242 }
c8afe684 Rob Clark 2013-06-26 243
fcda50c8 Arnd Bergmann 2016-02-22 244 struct i2c_adapter *msm_hdmi_i2c_init(struct hdmi *hdmi)
c8afe684 Rob Clark 2013-06-26 245 {
c8afe684 Rob Clark 2013-06-26 @246 struct drm_device *dev = hdmi->dev;
c8afe684 Rob Clark 2013-06-26 247 struct hdmi_i2c_adapter *hdmi_i2c;
c8afe684 Rob Clark 2013-06-26 248 struct i2c_adapter *i2c = NULL;
c8afe684 Rob Clark 2013-06-26 249 int ret;
c8afe684 Rob Clark 2013-06-26 250
c8afe684 Rob Clark 2013-06-26 251 hdmi_i2c = kzalloc(sizeof(*hdmi_i2c), GFP_KERNEL);
c8afe684 Rob Clark 2013-06-26 252 if (!hdmi_i2c) {
c8afe684 Rob Clark 2013-06-26 253 ret = -ENOMEM;
c8afe684 Rob Clark 2013-06-26 254 goto fail;
:::::: The code at line 246 was first introduced by commit
:::::: c8afe684c95cd17cf4f273d81af369a0fdfa5a74 drm/msm: basic KMS driver for snapdragon
:::::: TO: Rob Clark <robdclark@gmail.com>
:::::: CC: Rob Clark <robdclark@gmail.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 37713 bytes --]
reply other threads:[~2016-07-09 16:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=201607100004.Y6v8qsfF%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-i2c@vger.kernel.org \
--cc=wsa@the-dreams.de \
/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;
as well as URLs for NNTP newsgroup(s).