From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [skn:v5.10/ffa 6/7] drivers/firmware/arm_ffa/driver.c:350:5: warning: no previous prototype for 'ffa_setup_partitions'
Date: Sat, 05 Dec 2020 02:20:01 +0800 [thread overview]
Message-ID: <202012050257.ru16LEPr-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3045 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git v5.10/ffa
head: 2cfe2ac357730fed491b3432a6278d90043b387d
commit: 6dd6fdc9ea81d2016ad7481277f58ccd54c0cc2a [6/7] firmware: arm_ffa: Setup in-kernel users of FFA partitions
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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/sudeep.holla/linux.git/commit/?id=6dd6fdc9ea81d2016ad7481277f58ccd54c0cc2a
git remote add skn https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git
git fetch --no-tags skn v5.10/ffa
git checkout 6dd6fdc9ea81d2016ad7481277f58ccd54c0cc2a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.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/firmware/arm_ffa/driver.c:350:5: warning: no previous prototype for 'ffa_setup_partitions' [-Wmissing-prototypes]
350 | int ffa_setup_partitions(struct device_node *np)
| ^~~~~~~~~~~~~~~~~~~~
vim +/ffa_setup_partitions +350 drivers/firmware/arm_ffa/driver.c
349
> 350 int ffa_setup_partitions(struct device_node *np)
351 {
352 int ret;
353 struct device_node *child;
354 struct ffa_device *ffa_dev;
355 struct ffa_partition_info pbuf;
356 const char *p_uuid, *pfx = "Ignoring FFA partition";
357 uuid_t uuid = UUID_INIT(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
358
359 for_each_child_of_node(np, child) {
360 if (!of_device_is_compatible(child, "arm,ffa-1.0-partition")) {
361 of_node_put(child);
362 continue;
363 }
364
365 if (of_property_read_string(child, "uuid", &p_uuid)) {
366 pr_err("%s: failed to parse \"uuid\" property\n", pfx);
367 of_node_put(child);
368 continue;
369 }
370
371 of_node_put(child);
372
373 if (uuid_parse(p_uuid, &uuid)) {
374 pr_err("%s: invalid \"uuid\" property (%s)\n",
375 pfx, p_uuid);
376 continue;
377 }
378
379 ret = ffa_partition_probe(p_uuid, &pbuf);
380 if (ret != 1) {
381 pr_err("%s: %s partition info probe failed\n",
382 pfx, p_uuid);
383 return -EINVAL;
384 }
385
386 ffa_dev = ffa_device_register(p_uuid, pbuf.id);
387 if (!ffa_dev) {
388 pr_err("%s: failed to register %s\n", pfx, p_uuid);
389 continue;
390 }
391
392 ffa_dev_set_drvdata(ffa_dev, drv_info);
393 }
394
395 return 0;
396 }
397
---
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: 75506 bytes --]
reply other threads:[~2020-12-04 18:20 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=202012050257.ru16LEPr-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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 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.