tree:
https://gitlab.freedesktop.org/drm/msm.git msm-next-dp
head: 15562c2537a3dcedcf92fb942d7fec853ab0428a
commit: 8d58c622f51c1f03c4b48483704ca5fbc7d670a6 [49/50] drm/msm/dp: remove mode
hard-coding in case of DP CTS
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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
git checkout 8d58c622f51c1f03c4b48483704ca5fbc7d670a6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/msm/dp/dp_panel.c: In function 'dp_panel_get_modes':
> drivers/gpu/drm/msm/dp/dp_panel.c:248:27: warning: variable
'panel' set but not used [-Wunused-but-set-variable]
248 | struct
dp_panel_private *panel;
| ^~~~~
git remote add drm-msm
https://gitlab.freedesktop.org/drm/msm.git
git fetch --no-tags drm-msm msm-next-dp
git checkout 8d58c622f51c1f03c4b48483704ca5fbc7d670a6
vim +/panel +248 drivers/gpu/drm/msm/dp/dp_panel.c
15f1a5a04a1551 Chandan Uddaraju 2020-08-27 244
15f1a5a04a1551 Chandan Uddaraju 2020-08-27 245 int dp_panel_get_modes(struct dp_panel
*dp_panel,
15f1a5a04a1551 Chandan Uddaraju 2020-08-27 246 struct drm_connector *connector, struct
dp_display_mode *mode)
15f1a5a04a1551 Chandan Uddaraju 2020-08-27 247 {
15f1a5a04a1551 Chandan Uddaraju 2020-08-27 @248 struct dp_panel_private *panel;
15f1a5a04a1551 Chandan Uddaraju 2020-08-27 249
15f1a5a04a1551 Chandan Uddaraju 2020-08-27 250 if (!dp_panel) {
15f1a5a04a1551 Chandan Uddaraju 2020-08-27 251 DRM_ERROR("invalid
input\n");
15f1a5a04a1551 Chandan Uddaraju 2020-08-27 252 return -EINVAL;
15f1a5a04a1551 Chandan Uddaraju 2020-08-27 253 }
15f1a5a04a1551 Chandan Uddaraju 2020-08-27 254
15f1a5a04a1551 Chandan Uddaraju 2020-08-27 255 panel = container_of(dp_panel, struct
dp_panel_private, dp_panel);
15f1a5a04a1551 Chandan Uddaraju 2020-08-27 256
8d58c622f51c1f Abhinav Kumar 2020-09-12 257 if (dp_panel->edid)
15f1a5a04a1551 Chandan Uddaraju 2020-08-27 258 return dp_panel_update_modes(connector,
dp_panel->edid);
15f1a5a04a1551 Chandan Uddaraju 2020-08-27 259
15f1a5a04a1551 Chandan Uddaraju 2020-08-27 260 return 0;
15f1a5a04a1551 Chandan Uddaraju 2020-08-27 261 }
15f1a5a04a1551 Chandan Uddaraju 2020-08-27 262
:::::: The code at line 248 was first introduced by commit
:::::: 15f1a5a04a1551f9801569e81ddbef412252652f drm/msm/dp: add displayPort driver
support
:::::: TO: Chandan Uddaraju <chandanu(a)codeaurora.org>
:::::: CC: Rob Clark <robdclark(a)chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org