tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: b9011c7e671dbbf59bb753283ddfd03f0c9eb865 commit: 867cf9cd73c3d31666e4b480aa4f52828d25ac94 [268/8423] drm/dp: Extract i915's eDP backlight code into DRM helpers config: i386-randconfig-r021-20210816 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 44d0a99a12ec7ead4d2f5ef649ba05b40f6d463d) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=867cf9cd73c3d31666e4b480aa4f52828d25ac94 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 867cf9cd73c3d31666e4b480aa4f52828d25ac94 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): In file included from drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c:37: In file included from drivers/gpu/drm/i915/display/intel_display_types.h:47: In file included from drivers/gpu/drm/i915/i915_drv.h:82: In file included from drivers/gpu/drm/i915/gt/intel_gt_types.h:18: In file included from drivers/gpu/drm/i915/gt/uc/intel_uc.h:9: drivers/gpu/drm/i915/gt/uc/intel_guc.h:110:59: warning: unused parameter 'guc' [-Wunused-parameter] static inline u32 intel_guc_ggtt_offset(struct intel_guc *guc, ^ In file included from drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c:37: In file included from drivers/gpu/drm/i915/display/intel_display_types.h:47: In file included from drivers/gpu/drm/i915/i915_drv.h:82: In file included from drivers/gpu/drm/i915/gt/intel_gt_types.h:18: In file included from drivers/gpu/drm/i915/gt/uc/intel_uc.h:10: drivers/gpu/drm/i915/gt/uc/intel_guc_submission.h:25:72: warning: unused parameter 'guc' [-Wunused-parameter] static inline bool intel_guc_submission_is_supported(struct intel_guc *guc) ^ In file included from drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c:37: In file included from drivers/gpu/drm/i915/display/intel_display_types.h:47: In file included from drivers/gpu/drm/i915/i915_drv.h:98: drivers/gpu/drm/i915/i915_gpu_error.h:276:43: warning: unused parameter 'gt' [-Wunused-parameter] i915_capture_error_state(struct intel_gt *gt, intel_engine_mask_t engine_mask) ^ drivers/gpu/drm/i915/i915_gpu_error.h:276:67: warning: unused parameter 'engine_mask' [-Wunused-parameter] i915_capture_error_state(struct intel_gt *gt, intel_engine_mask_t engine_mask) ^ drivers/gpu/drm/i915/i915_gpu_error.h:281:50: warning: unused parameter 'i915' [-Wunused-parameter] i915_gpu_coredump_alloc(struct drm_i915_private *i915, gfp_t gfp) ^ drivers/gpu/drm/i915/i915_gpu_error.h:281:62: warning: unused parameter 'gfp' [-Wunused-parameter] i915_gpu_coredump_alloc(struct drm_i915_private *i915, gfp_t gfp) ^ drivers/gpu/drm/i915/i915_gpu_error.h:287:42: warning: unused parameter 'gt' [-Wunused-parameter] intel_gt_coredump_alloc(struct intel_gt *gt, gfp_t gfp) ^ drivers/gpu/drm/i915/i915_gpu_error.h:287:52: warning: unused parameter 'gfp' [-Wunused-parameter] intel_gt_coredump_alloc(struct intel_gt *gt, gfp_t gfp) ^ drivers/gpu/drm/i915/i915_gpu_error.h:293:53: warning: unused parameter 'engine' [-Wunused-parameter] intel_engine_coredump_alloc(struct intel_engine_cs *engine, gfp_t gfp) ^ drivers/gpu/drm/i915/i915_gpu_error.h:293:67: warning: unused parameter 'gfp' [-Wunused-parameter] intel_engine_coredump_alloc(struct intel_engine_cs *engine, gfp_t gfp) ^ drivers/gpu/drm/i915/i915_gpu_error.h:299:65: warning: unused parameter 'ee' [-Wunused-parameter] intel_engine_coredump_add_request(struct intel_engine_coredump *ee, ^ drivers/gpu/drm/i915/i915_gpu_error.h:300:28: warning: unused parameter 'rq' [-Wunused-parameter] struct i915_request *rq, ^ drivers/gpu/drm/i915/i915_gpu_error.h:301:13: warning: unused parameter 'gfp' [-Wunused-parameter] gfp_t gfp) ^ drivers/gpu/drm/i915/i915_gpu_error.h:307:61: warning: unused parameter 'ee' [-Wunused-parameter] intel_engine_coredump_add_vma(struct intel_engine_coredump *ee, ^ drivers/gpu/drm/i915/i915_gpu_error.h:308:43: warning: unused parameter 'capture' [-Wunused-parameter] struct intel_engine_capture_vma *capture, ^ drivers/gpu/drm/i915/i915_gpu_error.h:309:36: warning: unused parameter 'compress' [-Wunused-parameter] struct i915_vma_compress *compress) ^ drivers/gpu/drm/i915/i915_gpu_error.h:314:52: warning: unused parameter 'gt' [-Wunused-parameter] i915_vma_capture_prepare(struct intel_gt_coredump *gt) ^ drivers/gpu/drm/i915/i915_gpu_error.h:320:51: warning: unused parameter 'gt' [-Wunused-parameter] i915_vma_capture_finish(struct intel_gt_coredump *gt, ^ drivers/gpu/drm/i915/i915_gpu_error.h:321:30: warning: unused parameter 'compress' [-Wunused-parameter] struct i915_vma_compress *compress) ^ drivers/gpu/drm/i915/i915_gpu_error.h:326:50: warning: unused parameter 'error' [-Wunused-parameter] i915_error_state_store(struct i915_gpu_coredump *error) ^ drivers/gpu/drm/i915/i915_gpu_error.h:330:68: warning: unused parameter 'gpu' [-Wunused-parameter] static inline void i915_gpu_coredump_put(struct i915_gpu_coredump *gpu) ^ drivers/gpu/drm/i915/i915_gpu_error.h:335:49: warning: unused parameter 'i915' [-Wunused-parameter] i915_first_error_state(struct drm_i915_private *i915) ^ drivers/gpu/drm/i915/i915_gpu_error.h:340:68: warning: unused parameter 'i915' [-Wunused-parameter] static inline void i915_reset_error_state(struct drm_i915_private *i915) ^ drivers/gpu/drm/i915/i915_gpu_error.h:344:70: warning: unused parameter 'i915' [-Wunused-parameter] static inline void i915_disable_error_state(struct drm_i915_private *i915, ^ drivers/gpu/drm/i915/i915_gpu_error.h:345:14: warning: unused parameter 'err' [-Wunused-parameter] int err) ^ drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c:231:86: warning: unused parameter 'level' [-Wunused-parameter] intel_dp_aux_hdr_disable_backlight(const struct drm_connector_state *conn_state, u32 level) ^ drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c:273:89: warning: unused parameter 'unused' [-Wunused-parameter] static u32 intel_dp_aux_vesa_get_backlight(struct intel_connector *connector, enum pipe unused) ^ drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c:289:67: warning: unused parameter 'crtc_state' [-Wunused-parameter] intel_dp_aux_vesa_enable_backlight(const struct intel_crtc_state *crtc_state, ^ drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c:300:11: warning: unused parameter 'level' [-Wunused-parameter] u32 level) ^ >> drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c:309:91: warning: unused parameter 'pipe' [-Wunused-parameter] static int intel_dp_aux_vesa_setup_backlight(struct intel_connector *connector, enum pipe pipe) ^ 1625 warnings and 1 error generated. vim +/pipe +309 drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c 308 > 309 static int intel_dp_aux_vesa_setup_backlight(struct intel_connector *connector, enum pipe pipe) 310 { 311 struct intel_dp *intel_dp = intel_attached_dp(connector); 312 struct intel_panel *panel = &connector->panel; 313 struct drm_i915_private *i915 = dp_to_i915(intel_dp); 314 u16 current_level; 315 u8 current_mode; 316 int ret; 317 318 ret = drm_edp_backlight_init(&intel_dp->aux, &panel->backlight.edp.vesa.info, 319 i915->vbt.backlight.pwm_freq_hz, intel_dp->edp_dpcd, 320 ¤t_level, ¤t_mode); 321 if (ret < 0) 322 return ret; 323 324 panel->backlight.max = panel->backlight.edp.vesa.info.max; 325 panel->backlight.min = 0; 326 if (current_mode == DP_EDP_BACKLIGHT_CONTROL_MODE_DPCD) { 327 panel->backlight.level = current_level; 328 panel->backlight.enabled = panel->backlight.level != 0; 329 } else { 330 panel->backlight.level = panel->backlight.max; 331 panel->backlight.enabled = false; 332 } 333 334 return 0; 335 } 336 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip