[tglx-devel:msi 93/101] drivers/soc/ti/ti_sci_inta_msi.c:116:60: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct msi_range *'
From: kernel test robot
Date: Sat Nov 27 2021 - 05:55:54 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git msi
head: 900894c6ddc1b5b5a8f0c99ca573619d996468b8
commit: 46c1ea0c989ee963922a41cb88027994da48786c [93/101] genirq/msi: Add range argument to msi_domain_alloc/free_descs_locked()
config: arm64-randconfig-r006-20211126 (https://download.01.org/0day-ci/archive/20211127/202111271856.wXc90TMb-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5162b558d8c0b542e752b037e72a69d5fd51eb1e)
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/tglx/devel.git/commit/?id=46c1ea0c989ee963922a41cb88027994da48786c
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel msi
git checkout 46c1ea0c989ee963922a41cb88027994da48786c
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/soc/ti/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All warnings (new ones prefixed by >>):
>> drivers/soc/ti/ti_sci_inta_msi.c:116:60: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct msi_range *' [-Wint-conversion]
ret = msi_domain_alloc_irqs_descs_locked(msi_domain, dev, nvec);
^~~~
include/linux/msi.h:506:106: note: passing argument to parameter 'range' here
int msi_domain_alloc_irqs_descs_locked(struct irq_domain *domain, struct device *dev, struct msi_range *range);
^
1 warning generated.
vim +116 drivers/soc/ti/ti_sci_inta_msi.c
49b323157bf1e7 Lokesh Vutla 2019-04-30 90
49b323157bf1e7 Lokesh Vutla 2019-04-30 91 int ti_sci_inta_msi_domain_alloc_irqs(struct device *dev,
49b323157bf1e7 Lokesh Vutla 2019-04-30 92 struct ti_sci_resource *res)
49b323157bf1e7 Lokesh Vutla 2019-04-30 93 {
49b323157bf1e7 Lokesh Vutla 2019-04-30 94 struct platform_device *pdev = to_platform_device(dev);
49b323157bf1e7 Lokesh Vutla 2019-04-30 95 struct irq_domain *msi_domain;
49b323157bf1e7 Lokesh Vutla 2019-04-30 96 int ret, nvec;
49b323157bf1e7 Lokesh Vutla 2019-04-30 97
49b323157bf1e7 Lokesh Vutla 2019-04-30 98 msi_domain = dev_get_msi_domain(dev);
49b323157bf1e7 Lokesh Vutla 2019-04-30 99 if (!msi_domain)
49b323157bf1e7 Lokesh Vutla 2019-04-30 100 return -EINVAL;
49b323157bf1e7 Lokesh Vutla 2019-04-30 101
49b323157bf1e7 Lokesh Vutla 2019-04-30 102 if (pdev->id < 0)
49b323157bf1e7 Lokesh Vutla 2019-04-30 103 return -ENODEV;
49b323157bf1e7 Lokesh Vutla 2019-04-30 104
43736dc111781c Thomas Gleixner 2021-11-10 105 ret = msi_setup_device_data(dev);
43736dc111781c Thomas Gleixner 2021-11-10 106 if (ret)
43736dc111781c Thomas Gleixner 2021-11-10 107 return ret;
43736dc111781c Thomas Gleixner 2021-11-10 108
32e74ad753f574 Thomas Gleixner 2021-11-10 109 msi_lock_descs(dev);
49b323157bf1e7 Lokesh Vutla 2019-04-30 110 nvec = ti_sci_inta_msi_alloc_descs(dev, res);
32e74ad753f574 Thomas Gleixner 2021-11-10 111 if (nvec <= 0) {
32e74ad753f574 Thomas Gleixner 2021-11-10 112 ret = nvec;
32e74ad753f574 Thomas Gleixner 2021-11-10 113 goto unlock;
49b323157bf1e7 Lokesh Vutla 2019-04-30 114 }
49b323157bf1e7 Lokesh Vutla 2019-04-30 115
32e74ad753f574 Thomas Gleixner 2021-11-10 @116 ret = msi_domain_alloc_irqs_descs_locked(msi_domain, dev, nvec);
:::::: The code at line 116 was first introduced by commit
:::::: 32e74ad753f5747e1f201dc462a05ad80e9389ce soc: ti: ti_sci_inta_msi: Rework MSI descriptor allocation
:::::: TO: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
:::::: CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx