[renesas-drivers:topic/renesas-overlays 1/86] drivers//of/configfs.c:48:2: error: implicit declaration of function 'of_fdt_unflatten_tree'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git topic/renesas-overlays
head:   8361d7e7432d1937f94e1863211fb3f852e37f36
commit: 1ba23467c1d052c0b5c35436c034f0fb7103eeaf [1/86] OF: DT-Overlay configfs interface (v7)
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 1ba23467c1d052c0b5c35436c034f0fb7103eeaf
        # save the attached .config to linux build tree
        make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   drivers//of/configfs.c: In function 'create_overlay':
>> drivers//of/configfs.c:48:2: error: implicit declaration of function 'of_fdt_unflatten_tree' [-Werror=implicit-function-declaration]
     of_fdt_unflatten_tree(blob, NULL, &overlay->overlay);
     ^~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/of_fdt_unflatten_tree +48 drivers//of/configfs.c

    42	
    43	static int create_overlay(struct cfs_overlay_item *overlay, void *blob)
    44	{
    45		int err;
    46	
    47		/* unflatten the tree */
  > 48		of_fdt_unflatten_tree(blob, NULL, &overlay->overlay);
    49		if (overlay->overlay == NULL) {
    50			pr_err("%s: failed to unflatten tree\n", __func__);
    51			err = -EINVAL;
    52			goto out_err;
    53		}
    54		pr_debug("%s: unflattened OK\n", __func__);
    55	
    56		/* mark it as detached */
    57		of_node_set_flag(overlay->overlay, OF_DETACHED);
    58	
    59		/* perform resolution */
    60		err = of_resolve_phandles(overlay->overlay);
    61		if (err != 0) {
    62			pr_err("%s: Failed to resolve tree\n", __func__);
    63			goto out_err;
    64		}
    65		pr_debug("%s: resolved OK\n", __func__);
    66	
    67		err = of_overlay_create(overlay->overlay);
    68		if (err < 0) {
    69			pr_err("%s: Failed to create overlay (err=%d)\n",
    70					__func__, err);
    71			goto out_err;
    72		}
    73		overlay->ov_id = err;
    74	
    75	out_err:
    76		return err;
    77	}
    78	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux