[drm-tip:drm-tip 6/9] drivers/gpu/drm/i915/display/intel_display.c:17667:12: error: 'sanitize_watermarks_add_affected' defined but not used

kbuild test robot lkp at intel.com
Thu Feb 6 05:52:53 UTC 2020


tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   aed2ea22e07850d8f5fae07fcf3db8adf694b3d9
commit: 9c654e423507127b37b32e15543b2e04a719eab2 [6/9] Merge remote-tracking branch 'drm-intel/drm-intel-next-queued' into drm-tip
config: i386-randconfig-g002-20200206 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
        git checkout 9c654e423507127b37b32e15543b2e04a719eab2
        # save the attached .config to linux build tree
        make ARCH=i386 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

   drivers/gpu/drm/i915/display/intel_display.c:17691:12: error: redefinition of 'sanitize_watermarks_add_affected'
    static int sanitize_watermarks_add_affected(struct drm_atomic_state *state)
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/display/intel_display.c:17667:12: note: previous definition of 'sanitize_watermarks_add_affected' was here
    static int sanitize_watermarks_add_affected(struct drm_atomic_state *state)
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/display/intel_display.c:17667:12: error: 'sanitize_watermarks_add_affected' defined but not used [-Werror=unused-function]
   cc1: all warnings being treated as errors

vim +/sanitize_watermarks_add_affected +17667 drivers/gpu/drm/i915/display/intel_display.c

 17666	
 17667	static int sanitize_watermarks_add_affected(struct drm_atomic_state *state)
 17668	{
 17669		struct drm_plane *plane;
 17670		struct drm_crtc *crtc;
 17671	
 17672		drm_for_each_crtc(crtc, state->dev) {
 17673			struct drm_crtc_state *crtc_state;
 17674	
 17675			crtc_state = drm_atomic_get_crtc_state(state, crtc);
 17676			if (IS_ERR(crtc_state))
 17677				return PTR_ERR(crtc_state);
 17678		}
 17679	
 17680		drm_for_each_plane(plane, state->dev) {
 17681			struct drm_plane_state *plane_state;
 17682	
 17683			plane_state = drm_atomic_get_plane_state(state, plane);
 17684			if (IS_ERR(plane_state))
 17685				return PTR_ERR(plane_state);
 17686		}
 17687	
 17688		return 0;
 17689	}
 17690	

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


More information about the dri-devel mailing list