From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-next:master 7142/11956] drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1229:7: error: implicit declaration of function 'msm_dp_display_pre_disable'
Date: Wed, 30 Sep 2020 02:59:59 +0800 [thread overview]
Message-ID: <202009300255.vm3a72er-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4438 bytes --]
Hi Kuogee,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 49e7e3e905e437a02782019570f70997e2da9101
commit: 8ede2ecc3e5ee327923f6e3cfe52761ce73607d1 [7142/11956] drm/msm/dp: Add DP compliance tests on Snapdragon Chipsets
config: arm64-randconfig-r035-20200929 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project de55ebe3bbc77882901ae2b9654503b7611b28f3)
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=8ede2ecc3e5ee327923f6e3cfe52761ce73607d1
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 8ede2ecc3e5ee327923f6e3cfe52761ce73607d1
# 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@intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1229:7: error: implicit declaration of function 'msm_dp_display_pre_disable' [-Werror,-Wimplicit-function-declaration]
if (msm_dp_display_pre_disable(priv->dp, drm_enc))
^
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1229:7: note: did you mean 'msm_dp_display_disable'?
drivers/gpu/drm/msm/msm_drv.h:420:19: note: 'msm_dp_display_disable' declared here
static inline int msm_dp_display_disable(struct msm_dp *dp,
^
1 error generated.
vim +/msm_dp_display_pre_disable +1229 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
1198
1199 static void dpu_encoder_virt_disable(struct drm_encoder *drm_enc)
1200 {
1201 struct dpu_encoder_virt *dpu_enc = NULL;
1202 struct msm_drm_private *priv;
1203 struct dpu_kms *dpu_kms;
1204 int i = 0;
1205
1206 if (!drm_enc) {
1207 DPU_ERROR("invalid encoder\n");
1208 return;
1209 } else if (!drm_enc->dev) {
1210 DPU_ERROR("invalid dev\n");
1211 return;
1212 }
1213
1214 dpu_enc = to_dpu_encoder_virt(drm_enc);
1215 DPU_DEBUG_ENC(dpu_enc, "\n");
1216
1217 mutex_lock(&dpu_enc->enc_lock);
1218 dpu_enc->enabled = false;
1219
1220 priv = drm_enc->dev->dev_private;
1221 dpu_kms = to_dpu_kms(priv->kms);
1222
1223 trace_dpu_enc_disable(DRMID(drm_enc));
1224
1225 /* wait for idle */
1226 dpu_encoder_wait_for_event(drm_enc, MSM_ENC_TX_COMPLETE);
1227
1228 if (drm_enc->encoder_type == DRM_MODE_ENCODER_TMDS && priv->dp) {
> 1229 if (msm_dp_display_pre_disable(priv->dp, drm_enc))
1230 DPU_ERROR_ENC(dpu_enc, "dp display push idle failed\n");
1231 }
1232
1233 dpu_encoder_resource_control(drm_enc, DPU_ENC_RC_EVENT_PRE_STOP);
1234
1235 for (i = 0; i < dpu_enc->num_phys_encs; i++) {
1236 struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i];
1237
1238 if (phys->ops.disable)
1239 phys->ops.disable(phys);
1240 }
1241
1242
1243 /* after phys waits for frame-done, should be no more frames pending */
1244 if (atomic_xchg(&dpu_enc->frame_done_timeout_ms, 0)) {
1245 DPU_ERROR("enc%d timeout pending\n", drm_enc->base.id);
1246 del_timer_sync(&dpu_enc->frame_done_timer);
1247 }
1248
1249 dpu_encoder_resource_control(drm_enc, DPU_ENC_RC_EVENT_STOP);
1250
1251 for (i = 0; i < dpu_enc->num_phys_encs; i++) {
1252 dpu_enc->phys_encs[i]->connector = NULL;
1253 }
1254
1255 DPU_DEBUG_ENC(dpu_enc, "encoder disabled\n");
1256
1257 if (drm_enc->encoder_type == DRM_MODE_ENCODER_TMDS && priv->dp) {
1258 if (msm_dp_display_disable(priv->dp, drm_enc))
1259 DPU_ERROR_ENC(dpu_enc, "dp display disable failed\n");
1260 }
1261
1262 mutex_unlock(&dpu_enc->enc_lock);
1263 }
1264
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37600 bytes --]
reply other threads:[~2020-09-29 18:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202009300255.vm3a72er-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.