tree: https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git topic/renesas-overlays head: 775b0f62546cf5d5791c43d3ee5239f5394014fb commit: cd57c0972233bd19244b37aeb075adb26ff6d4df [8/91] OF: DT-Overlay configfs interface (v7) config: sparc64-allmodconfig (attached as .config) compiler: sparc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout cd57c0972233bd19244b37aeb075adb26ff6d4df # 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'; did you mean 'of_pdt_build_devicetree'?
>> [-Werror=implicit-function-declaration]
of_fdt_unflatten_tree(blob, NULL, &overlay->overlay);
^~~~~~~~~~~~~~~~~~~~~
of_pdt_build_devicetree
cc1: some warnings being treated as errors
vim +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_apply(overlay->overlay, &overlay->ov_id);
68 if (err < 0) {
69 pr_err("%s: Failed to create overlay (err=%d)\n",
70 __func__, err);
71 goto out_err;
72 }
73
74 out_err:
75 return err;
76 }
77
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip
