[drm:drm-next 16/16] drivers/gpu//drm/i915/intel_dp.c:1551:12: error: 'rate_to_index' defined but not used

kbuild test robot fengguang.wu at intel.com
Fri Jun 16 08:57:53 UTC 2017


tree:   git://people.freedesktop.org/~airlied/linux.git drm-next
head:   925344ccc91d7a7fd84cab2dece1c34bbd86fd8c
commit: 925344ccc91d7a7fd84cab2dece1c34bbd86fd8c [16/16] BackMerge tag 'v4.12-rc5' into drm-next
config: x86_64-randconfig-it0-06161413 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout 925344ccc91d7a7fd84cab2dece1c34bbd86fd8c
        # 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:1551:12: error: 'rate_to_index' defined but not used [-Werror=unused-function]
    static int rate_to_index(int find, const int *rates)
               ^
   cc1: all warnings being treated as errors

vim +/rate_to_index +1551 drivers/gpu//drm/i915/intel_dp.c

0336400ebe Ville Syrjälä 2015-03-12  1545  
975ee5fca1 Jani Nikula   2017-04-06  1546  	snprintf_int_array(str, sizeof(str),
975ee5fca1 Jani Nikula   2017-04-06  1547  			   intel_dp->common_rates, intel_dp->num_common_rates);
94ca719ee4 Ville Syrjälä 2015-03-13  1548  	DRM_DEBUG_KMS("common rates: %s\n", str);
0336400ebe Ville Syrjälä 2015-03-12  1549  }
0336400ebe Ville Syrjälä 2015-03-12  1550  
f4896f1529 Ville Syrjälä 2015-03-12 @1551  static int rate_to_index(int find, const int *rates)
1a2724fa94 Mika Kahola   2016-09-09  1552  {
a8f3ef6197 Sonika Jindal 2015-03-05  1553  	int i = 0;
1a2724fa94 Mika Kahola   2016-09-09  1554  

:::::: The code at line 1551 was first introduced by commit
:::::: f4896f1529c43fb0688164ed33aebdf525a34fb7 drm/i915: Make the DP rates int instead of uint32_t

:::::: TO: Ville Syrjälä <ville.syrjala at linux.intel.com>
:::::: CC: Daniel Vetter <daniel.vetter at ffwll.ch>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 28120 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170616/aa7f6b30/attachment-0001.gz>


More information about the dri-devel mailing list