* [wsa:strings/i2c 30/92] drivers/gpu/drm/msm/hdmi/hdmi_i2c.c:246:21: warning: unused variable 'dev'
@ 2016-07-09 16:38 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-07-09 16:38 UTC (permalink / raw)
To: Wolfram Sang; +Cc: kbuild-all, linux-i2c
[-- 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 --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-09 16:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-09 16:38 [wsa:strings/i2c 30/92] drivers/gpu/drm/msm/hdmi/hdmi_i2c.c:246:21: warning: unused variable 'dev' kbuild test robot
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).