All of lore.kernel.org
 help / color / mirror / Atom feed
* [skn:v5.10/ffa 6/7] drivers/firmware/arm_ffa/driver.c:350:5: warning: no previous prototype for 'ffa_setup_partitions'
@ 2020-12-04 18:20 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-04 18:20 UTC (permalink / raw)
  To: kbuild-all

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-04 18:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-04 18:20 [skn:v5.10/ffa 6/7] drivers/firmware/arm_ffa/driver.c:350:5: warning: no previous prototype for 'ffa_setup_partitions' 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.