tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 19ae1f2bd9c091059f80646604ccef8a1e614f57 commit: 1c3b7ac1a71d4266d7243fe5f7cd530322c59583 [3804/10007] drm/msm: pass dump state as a function argument config: arm64-randconfig-r015-20210615 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401) 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 # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=1c3b7ac1a71d4266d7243fe5f7cd530322c59583 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 1c3b7ac1a71d4266d7243fe5f7cd530322c59583 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): drivers/gpu/drm/msm/dp/dp_display.c:506:19: warning: variable 'hpd' set but not used [-Wunused-but-set-variable] struct dp_usbpd *hpd; ^ >> drivers/gpu/drm/msm/dp/dp_display.c:1045:21: warning: variable 'drm' set but not used [-Wunused-but-set-variable] struct drm_device *drm; ^ 2 warnings generated. vim +/drm +1045 drivers/gpu/drm/msm/dp/dp_display.c c943b4948b5848 Chandan Uddaraju 2020-08-27 1041 1c3b7ac1a71d42 Dmitry Baryshkov 2021-04-27 1042 void msm_dp_snapshot(struct msm_disp_state *disp_state, struct msm_dp *dp) 95e84adc2da78e Abhinav Kumar 2021-04-16 1043 { 95e84adc2da78e Abhinav Kumar 2021-04-16 1044 struct dp_display_private *dp_display; 95e84adc2da78e Abhinav Kumar 2021-04-16 @1045 struct drm_device *drm; 95e84adc2da78e Abhinav Kumar 2021-04-16 1046 95e84adc2da78e Abhinav Kumar 2021-04-16 1047 dp_display = container_of(dp, struct dp_display_private, dp_display); 95e84adc2da78e Abhinav Kumar 2021-04-16 1048 drm = dp->drm_dev; 95e84adc2da78e Abhinav Kumar 2021-04-16 1049 95e84adc2da78e Abhinav Kumar 2021-04-16 1050 /* 95e84adc2da78e Abhinav Kumar 2021-04-16 1051 * if we are reading registers we need the link clocks to be on 95e84adc2da78e Abhinav Kumar 2021-04-16 1052 * however till DP cable is connected this will not happen as we 95e84adc2da78e Abhinav Kumar 2021-04-16 1053 * do not know the resolution to power up with. Hence check the 95e84adc2da78e Abhinav Kumar 2021-04-16 1054 * power_on status before dumping DP registers to avoid crash due 95e84adc2da78e Abhinav Kumar 2021-04-16 1055 * to unclocked access 95e84adc2da78e Abhinav Kumar 2021-04-16 1056 */ 95e84adc2da78e Abhinav Kumar 2021-04-16 1057 mutex_lock(&dp_display->event_mutex); 95e84adc2da78e Abhinav Kumar 2021-04-16 1058 95e84adc2da78e Abhinav Kumar 2021-04-16 1059 if (!dp->power_on) { 95e84adc2da78e Abhinav Kumar 2021-04-16 1060 mutex_unlock(&dp_display->event_mutex); 95e84adc2da78e Abhinav Kumar 2021-04-16 1061 return; 95e84adc2da78e Abhinav Kumar 2021-04-16 1062 } 95e84adc2da78e Abhinav Kumar 2021-04-16 1063 95e84adc2da78e Abhinav Kumar 2021-04-16 1064 dp_catalog_snapshot(dp_display->catalog, disp_state); 95e84adc2da78e Abhinav Kumar 2021-04-16 1065 95e84adc2da78e Abhinav Kumar 2021-04-16 1066 mutex_unlock(&dp_display->event_mutex); 95e84adc2da78e Abhinav Kumar 2021-04-16 1067 } 95e84adc2da78e Abhinav Kumar 2021-04-16 1068 :::::: The code at line 1045 was first introduced by commit :::::: 95e84adc2da78e2c6db4dc59f1627c114c14e436 drm/msm/dp: add API to take DP register snapshot :::::: TO: Abhinav Kumar <abhinavk@xxxxxxxxxxxxxx> :::::: CC: Rob Clark <robdclark@xxxxxxxxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip