From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: [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 *'
Date: Sat, 27 Nov 2021 18:53:10 +0800 [thread overview]
Message-ID: <202111271856.wXc90TMb-lkp@intel.com> (raw)
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@intel.com/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@intel.com>
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@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
reply other threads:[~2021-11-27 10:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202111271856.wXc90TMb-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox