[tegra:for-4.8/work 4/28] drivers/gpu/drm/i915/intel_dp_mst.c:493: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/tegra/linux.git for-4.8/work
head:   d2ff1d174bed6e4bcbe7976c8ebfe391825325e8
commit: 221fbd70e8c8b69119023cd945117ca21dd62493 [4/28] drm/fb-helper: Push down modeset lock into FB helpers
config: i386-defconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        git checkout 221fbd70e8c8b69119023cd945117ca21dd62493
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/i915/intel_dp_mst.c: In function 'intel_dp_destroy_mst_connector':
>> drivers/gpu/drm/i915/intel_dp_mst.c:493:21: warning: unused variable 'dev' [-Wunused-variable]
     struct drm_device *dev = connector->dev;
                        ^~~

vim +/dev +493 drivers/gpu/drm/i915/intel_dp_mst.c

d9515c5e Dave Airlie       2015-09-16  477  static void intel_dp_register_mst_connector(struct drm_connector *connector)
d9515c5e Dave Airlie       2015-09-16  478  {
d9515c5e Dave Airlie       2015-09-16  479  	struct intel_connector *intel_connector = to_intel_connector(connector);
d9515c5e Dave Airlie       2015-09-16  480  	struct drm_device *dev = connector->dev;
7a418e34 Chris Wilson      2016-06-24  481  
8bb4da1d Daniel Vetter     2015-07-09  482  	drm_modeset_lock_all(dev);
7296c849 Chris Wilson      2014-07-22  483  	intel_connector_add_to_fbdev(intel_connector);
8bb4da1d Daniel Vetter     2015-07-09  484  	drm_modeset_unlock_all(dev);
7a418e34 Chris Wilson      2016-06-24  485  
0e32b39c Dave Airlie       2014-05-02  486  	drm_connector_register(&intel_connector->base);
0e32b39c Dave Airlie       2014-05-02  487  }
0e32b39c Dave Airlie       2014-05-02  488  
0e32b39c Dave Airlie       2014-05-02  489  static void intel_dp_destroy_mst_connector(struct drm_dp_mst_topology_mgr *mgr,
0e32b39c Dave Airlie       2014-05-02  490  					   struct drm_connector *connector)
0e32b39c Dave Airlie       2014-05-02  491  {
0e32b39c Dave Airlie       2014-05-02  492  	struct intel_connector *intel_connector = to_intel_connector(connector);
0e32b39c Dave Airlie       2014-05-02 @493  	struct drm_device *dev = connector->dev;
20fae983 Maarten Lankhorst 2015-08-06  494  
c191eca1 Chris Wilson      2016-06-17  495  	drm_connector_unregister(connector);
1f771755 Lyude             2016-03-16  496  
0e32b39c Dave Airlie       2014-05-02  497  	/* need to nuke the connector */
7296c849 Chris Wilson      2014-07-22  498  	intel_connector_remove_from_fbdev(intel_connector);
0552f765 Dave Airlie       2016-03-09  499  	intel_connector->mst_port = NULL;
0e32b39c Dave Airlie       2014-05-02  500  
0552f765 Dave Airlie       2016-03-09  501  	drm_connector_unreference(&intel_connector->base);

:::::: The code at line 493 was first introduced by commit
:::::: 0e32b39ceed665bfa4a77a4bc307b6652b991632 drm/i915: add DP 1.2 MST support (v0.7)

:::::: TO: Dave Airlie <airlied@xxxxxxxxxx>
:::::: CC: Dave Airlie <airlied@xxxxxxxxxx>

---
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]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux