* [chenhuacai-linux-loongson:loongarch-next 15/39] drivers/irqchip/irq-loongson-pch-msi.c:196:5: warning: no previous prototype for 'pch_msi_of_init'
@ 2021-06-28 17:05 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-28 17:05 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3448 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson.git loongarch-next
head: abd54d3fdafcc8df4aa20ee27ed9abe66cb2fb35
commit: 3e5ea86a131a77df1a8ef729672cd6ece7446bef [15/39] irqchip/loongson-pch-msi: Add ACPI init support
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-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/chenhuacai/linux-loongson.git/commit/?id=3e5ea86a131a77df1a8ef729672cd6ece7446bef
git remote add chenhuacai-linux-loongson https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson.git
git fetch --no-tags chenhuacai-linux-loongson loongarch-next
git checkout 3e5ea86a131a77df1a8ef729672cd6ece7446bef
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
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/irqchip/irq-loongson-pch-msi.c:196:5: warning: no previous prototype for 'pch_msi_of_init' [-Wmissing-prototypes]
196 | int pch_msi_of_init(struct device_node *node, struct device_node *parent)
| ^~~~~~~~~~~~~~~
vim +/pch_msi_of_init +196 drivers/irqchip/irq-loongson-pch-msi.c
195
> 196 int pch_msi_of_init(struct device_node *node, struct device_node *parent)
197 {
198 struct pch_msi_data *priv;
199 struct irq_domain *parent_domain;
200 struct resource res;
201 int ret;
202
203 parent_domain = irq_find_host(parent);
204 if (!parent_domain) {
205 pr_err("Failed to find the parent domain\n");
206 return -ENXIO;
207 }
208
209 priv = kzalloc(sizeof(*priv), GFP_KERNEL);
210 if (!priv)
211 return -ENOMEM;
212
213 mutex_init(&priv->msi_map_lock);
214
215 ret = of_address_to_resource(node, 0, &res);
216 if (ret) {
217 pr_err("Failed to allocate resource\n");
218 goto err_priv;
219 }
220
221 priv->doorbell = res.start;
222
223 if (of_property_read_u32(node, "loongson,msi-base-vec",
224 &priv->irq_first)) {
225 pr_err("Unable to parse MSI vec base\n");
226 ret = -EINVAL;
227 goto err_priv;
228 }
229
230 if (of_property_read_u32(node, "loongson,msi-num-vecs",
231 &priv->num_irqs)) {
232 pr_err("Unable to parse MSI vec number\n");
233 ret = -EINVAL;
234 goto err_priv;
235 }
236
237 priv->msi_map = bitmap_zalloc(priv->num_irqs, GFP_KERNEL);
238 if (!priv->msi_map) {
239 ret = -ENOMEM;
240 goto err_priv;
241 }
242
243 pr_debug("Registering %d MSIs, starting at %d\n",
244 priv->num_irqs, priv->irq_first);
245
246 ret = pch_msi_init_domains(priv, node, parent_domain);
247 if (ret)
248 goto err_map;
249
250 return 0;
251
252 err_map:
253 kfree(priv->msi_map);
254 err_priv:
255 kfree(priv);
256 return ret;
257 }
258
---
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: 69649 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-28 17:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-28 17:05 [chenhuacai-linux-loongson:loongarch-next 15/39] drivers/irqchip/irq-loongson-pch-msi.c:196:5: warning: no previous prototype for 'pch_msi_of_init' 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.