[wsa:strings/i2c 30/92] drivers/gpu/drm/msm/hdmi/hdmi_i2c.c:246:21: warning: unused variable 'dev'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
:::::: CC: Rob Clark <robdclark@xxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux