Re: [PATCH] drm/i915: intel_dp_check_link_status should only return status of link

kbuild test robot
2016-07-02T06:28:03Z

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

Hi,

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on v4.7-rc5 next-20160701]
[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/Manasi-Navare/drm-i915-intel_dp_check_link_status-should-only-return-status-of-link/20160702-124153
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-i0-201626 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

drivers/gpu/drm/i915/intel_dp.c: In function 'intel_dp_check_link_status':
>> drivers/gpu/drm/i915/intel_dp.c:3872:24: error: unused variable 'intel_encoder' [-Werror=unused-variable]
struct intel_encoder *intel_encoder = &dp_to_dig_port(intel_dp)->base;
^~~~~~~~~~~~~
cc1: all warnings being treated as errors

vim +/intel_encoder +3872 drivers/gpu/drm/i915/intel_dp.c

0e32b39c Dave Airlie 2014-05-02 3866 return -EINVAL;
0e32b39c Dave Airlie 2014-05-02 3867 }
0e32b39c Dave Airlie 2014-05-02 3868
84fa171b Manasi Navare 2016-07-01 3869 static bool
5c9114d0 Shubhangi Shrivastava 2016-03-30 3870 intel_dp_check_link_status(struct intel_dp *intel_dp)
5c9114d0 Shubhangi Shrivastava 2016-03-30 3871 {
5c9114d0 Shubhangi Shrivastava 2016-03-30 @3872 struct intel_encoder *intel_encoder = &dp_to_dig_port(intel_dp)->base;
5c9114d0 Shubhangi Shrivastava 2016-03-30 3873 struct drm_device *dev = intel_dp_to_dev(intel_dp);
5c9114d0 Shubhangi Shrivastava 2016-03-30 3874 u8 link_status[DP_LINK_STATUS_SIZE];
5c9114d0 Shubhangi Shrivastava 2016-03-30 3875

:::::: The code at line 3872 was first introduced by commit
:::::: 5c9114d0ced2f16d1bfeda650b4acf95159f4759 drm/i915: Reorganizing intel_dp_check_link_status

:::::: TO: Shubhangi Shrivastava <shubhangi.shrivastava@intel.com>
:::::: CC: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.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: 29665 bytes --]

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]