tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git tmp
head: 13665f1f8b5d501b40b1bc8448b0a032c7f04cc2
commit: 408b2b0c3fd434779f9c862fed5f2b0cc76ba606 [27/44] slimbus: qcom: fix potential NULL
dereference in qcom_slim_prg_slew()
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-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
#
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 tmp
git checkout 408b2b0c3fd434779f9c862fed5f2b0cc76ba606
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
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/slimbus/qcom-ctrl.c: In function 'qcom_slim_prg_slew':
drivers/slimbus/qcom-ctrl.c:477:20: error: implicit declaration of function
'devm_platform_ioremap_resource_byname'; did you mean
'devm_platform_ioremap_resource'? [-Werror=implicit-function-declaration]
477 | ctrl->slew_reg = devm_platform_ioremap_resource_byname(pdev,
"slew");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| devm_platform_ioremap_resource
> drivers/slimbus/qcom-ctrl.c:477:18: warning: assignment to
'void *' from 'int' makes pointer from integer without a cast
[-Wint-conversion]
477 | ctrl->slew_reg =
devm_platform_ioremap_resource_byname(pdev, "slew");
| ^
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
Selected by
- FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS &&
STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390
&& !MICROBLAZE && !ARM && !ARC && !X86
vim +477 drivers/slimbus/qcom-ctrl.c
471
472 static void qcom_slim_prg_slew(struct platform_device *pdev,
473 struct qcom_slim_ctrl *ctrl)
474 {
475 if (!ctrl->slew_reg) {
476 /* SLEW RATE register for this SLIMbus */
477 ctrl->slew_reg = devm_platform_ioremap_resource_byname(pdev,
"slew");
478 if (IS_ERR(ctrl->slew_reg))
479 return;
480 }
481
482 writel_relaxed(1, ctrl->slew_reg);
483 /* Make sure SLIMbus-slew rate enabling goes through */
484 wmb();
485 }
486
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org