lkml.org 
[lkml]   [2021]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[tglx-devel:msi 93/101] drivers/soc/ti/ti_sci_inta_msi.c:116:67: warning: passing argument 3 of 'msi_domain_alloc_irqs_descs_locked' makes pointer from integer without a cast
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git msi
head: 1bd31f3b9bc0cc3328fe9030a6b240ac1772d60a
commit: ff97d45fcc8af0d7ca617f3dfe7f35fb7d5339dc [93/101] genirq/msi: Add range argument to msi_domain_alloc/free_descs_locked()
config: arm64-buildonly-randconfig-r003-20211125 (https://download.01.org/0day-ci/archive/20211125/202111252218.u8k5qJA4-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.2.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/tglx/devel.git/commit/?id=ff97d45fcc8af0d7ca617f3dfe7f35fb7d5339dc
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 ff97d45fcc8af0d7ca617f3dfe7f35fb7d5339dc
# save the config file to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm64

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

All warnings (new ones prefixed by >>):

drivers/soc/ti/ti_sci_inta_msi.c: In function 'ti_sci_inta_msi_domain_alloc_irqs':
>> drivers/soc/ti/ti_sci_inta_msi.c:116:67: warning: passing argument 3 of 'msi_domain_alloc_irqs_descs_locked' makes pointer from integer without a cast [-Wint-conversion]
116 | ret = msi_domain_alloc_irqs_descs_locked(msi_domain, dev, nvec);
| ^~~~
| |
| int
In file included from drivers/soc/ti/ti_sci_inta_msi.c:11:
include/linux/msi.h:506:106: note: expected 'struct msi_range *' but argument is of type 'int'
506 | int msi_domain_alloc_irqs_descs_locked(struct irq_domain *domain, struct device *dev, struct msi_range *range);
| ~~~~~~~~~~~~~~~~~~^~~~~


vim +/msi_domain_alloc_irqs_descs_locked +116 drivers/soc/ti/ti_sci_inta_msi.c

49b323157bf1e70 Lokesh Vutla 2019-04-30 90
49b323157bf1e70 Lokesh Vutla 2019-04-30 91 int ti_sci_inta_msi_domain_alloc_irqs(struct device *dev,
49b323157bf1e70 Lokesh Vutla 2019-04-30 92 struct ti_sci_resource *res)
49b323157bf1e70 Lokesh Vutla 2019-04-30 93 {
49b323157bf1e70 Lokesh Vutla 2019-04-30 94 struct platform_device *pdev = to_platform_device(dev);
49b323157bf1e70 Lokesh Vutla 2019-04-30 95 struct irq_domain *msi_domain;
49b323157bf1e70 Lokesh Vutla 2019-04-30 96 int ret, nvec;
49b323157bf1e70 Lokesh Vutla 2019-04-30 97
49b323157bf1e70 Lokesh Vutla 2019-04-30 98 msi_domain = dev_get_msi_domain(dev);
49b323157bf1e70 Lokesh Vutla 2019-04-30 99 if (!msi_domain)
49b323157bf1e70 Lokesh Vutla 2019-04-30 100 return -EINVAL;
49b323157bf1e70 Lokesh Vutla 2019-04-30 101
49b323157bf1e70 Lokesh Vutla 2019-04-30 102 if (pdev->id < 0)
49b323157bf1e70 Lokesh Vutla 2019-04-30 103 return -ENODEV;
49b323157bf1e70 Lokesh Vutla 2019-04-30 104
025c2c9e7077d3a Thomas Gleixner 2021-11-10 105 ret = msi_setup_device_data(dev);
025c2c9e7077d3a Thomas Gleixner 2021-11-10 106 if (ret)
025c2c9e7077d3a Thomas Gleixner 2021-11-10 107 return ret;
025c2c9e7077d3a Thomas Gleixner 2021-11-10 108
b9f8772d4c17ea7 Thomas Gleixner 2021-11-10 109 msi_lock_descs(dev);
49b323157bf1e70 Lokesh Vutla 2019-04-30 110 nvec = ti_sci_inta_msi_alloc_descs(dev, res);
b9f8772d4c17ea7 Thomas Gleixner 2021-11-10 111 if (nvec <= 0) {
b9f8772d4c17ea7 Thomas Gleixner 2021-11-10 112 ret = nvec;
b9f8772d4c17ea7 Thomas Gleixner 2021-11-10 113 goto unlock;
49b323157bf1e70 Lokesh Vutla 2019-04-30 114 }
49b323157bf1e70 Lokesh Vutla 2019-04-30 115
b9f8772d4c17ea7 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
:::::: b9f8772d4c17ea7bb4be6bd44f44077f791e29ca soc: ti: ti_sci_inta_msi: Rework MSI descriptor allocation

:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

\
 
 \ /
  Last update: 2021-11-25 15:50    [W:0.088 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site