All of lore.kernel.org
 help / color / mirror / Atom feed
* [sashal-linux-stable:tmp 27/44] drivers/slimbus/qcom-ctrl.c:477:20: error: implicit declaration of function 'devm_platform_ioremap_resource_byname'
@ 2021-03-24  3:45 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-24  3:45 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3027 bytes --]

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: x86_64-randconfig-a013-20210323 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a4fb88669cd98db6fef7dcac88e3ec425d40c00d)
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/commit/?id=408b2b0c3fd434779f9c862fed5f2b0cc76ba606
        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=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

>> drivers/slimbus/qcom-ctrl.c:477:20: error: implicit declaration of function 'devm_platform_ioremap_resource_byname' [-Werror,-Wimplicit-function-declaration]
                   ctrl->slew_reg = devm_platform_ioremap_resource_byname(pdev, "slew");
                                    ^
   drivers/slimbus/qcom-ctrl.c:477:20: note: did you mean 'devm_platform_ioremap_resource'?
   include/linux/platform_device.h:58:1: note: 'devm_platform_ioremap_resource' declared here
   devm_platform_ioremap_resource(struct platform_device *pdev,
   ^
>> drivers/slimbus/qcom-ctrl.c:477:18: warning: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion]
                   ctrl->slew_reg = devm_platform_ioremap_resource_byname(pdev, "slew");
                                  ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning and 1 error generated.


vim +/devm_platform_ioremap_resource_byname +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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29221 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-24  3:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-24  3:45 [sashal-linux-stable:tmp 27/44] drivers/slimbus/qcom-ctrl.c:477:20: error: implicit declaration of function 'devm_platform_ioremap_resource_byname' kernel test robot

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.