tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
pending-4.19
head: 7a22a15b233112e0df833d0bc9b0b99cc0c226ba
commit: d11e537f3222e51269fd973fafbdcc69d47394f0 [145/319] media: sh_vou: fix
pm_runtime_get_sync() usage count
config: x86_64-randconfig-r003-20210711 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
8d69635ed9ecf36fd0ca85906bfde17949671cbe)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable pending-4.19
git checkout d11e537f3222e51269fd973fafbdcc69d47394f0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/media/platform/sh_vou.c:1147:9: error: implicit
declaration of function 'pm_runtime_resume_and_get'
[-Werror,-Wimplicit-function-declaration]
err =
pm_runtime_resume_and_get(vou_dev->v4l2_dev.dev);
^
drivers/media/platform/sh_vou.c:1147:9: note: did you mean
'pm_runtime_resume'?
include/linux/pm_runtime.h:198:19: note: 'pm_runtime_resume' declared here
static inline int pm_runtime_resume(struct device *dev)
^
1 error generated.
vim +/pm_runtime_resume_and_get +1147 drivers/media/platform/sh_vou.c
1131
1132 /* File operations */
1133 static int sh_vou_open(struct file *file)
1134 {
1135 struct sh_vou_device *vou_dev = video_drvdata(file);
1136 int err;
1137
1138 if (mutex_lock_interruptible(&vou_dev->fop_lock))
1139 return -ERESTARTSYS;
1140
1141 err = v4l2_fh_open(file);
1142 if (err)
1143 goto done_open;
1144 if (v4l2_fh_is_singular_file(file) &&
1145 vou_dev->status == SH_VOU_INITIALISING) {
1146 /* First open */
1147 err = pm_runtime_resume_and_get(vou_dev->v4l2_dev.dev);
1148 if (err < 0) {
1149 v4l2_fh_release(file);
1150 goto done_open;
1151 }
1152 err = sh_vou_hw_init(vou_dev);
1153 if (err < 0) {
1154 pm_runtime_put(vou_dev->v4l2_dev.dev);
1155 v4l2_fh_release(file);
1156 } else {
1157 vou_dev->status = SH_VOU_IDLE;
1158 }
1159 }
1160 done_open:
1161 mutex_unlock(&vou_dev->fop_lock);
1162 return err;
1163 }
1164
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org