mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: frowand.list@gmail.com
Cc: kbuild-all@01.org, Rob Herring <robh+dt@kernel.org>,
	pantelis.antoniou@konsulko.com,
	Pantelis Antoniou <panto@antoniou-consulting.com>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	geert@linux-m68k.org
Subject: Re: [PATCH v3 1/4] of: change overlay apply input data from unflattened to FDT
Date: Sun, 18 Feb 2018 10:24:33 +0800	[thread overview]
Message-ID: <201802181051.s4lNqobC%fengguang.wu@intel.com> (raw)
In-Reply-To: <1518672946-7310-2-git-send-email-frowand.list@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2714 bytes --]

Hi Frank,

I love your patch! Yet something to improve:

[auto build test ERROR on robh/for-next]
[also build test ERROR on v4.16-rc1 next-20180216]
[cannot apply to glikely/devicetree/next]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/frowand-list-gmail-com/of-change-overlay-apply-input-data-from-unflattened/20180218-095108
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: i386-randconfig-x018-201807 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

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

vim +/of_fdt_unflatten_tree +832 drivers/of/overlay.c

   806	
   807	int of_overlay_fdt_apply(void *overlay_fdt, int *ovcs_id)
   808	{
   809		const void *new_fdt;
   810		int ret;
   811		u32 size;
   812		struct device_node *overlay_root;
   813	
   814		*ovcs_id = 0;
   815		ret = 0;
   816	
   817		if (fdt_check_header(overlay_fdt)) {
   818			pr_err("Invalid overlay_fdt header\n");
   819			return -EINVAL;
   820		}
   821	
   822		size = fdt_totalsize(overlay_fdt);
   823	
   824		/*
   825		 * Must create permanent copy of FDT because of_fdt_unflatten_tree()
   826		 * will create pointers to the passed in FDT in the unflattened tree.
   827		 */
   828		new_fdt = kmemdup(overlay_fdt, size, GFP_KERNEL);
   829		if (!new_fdt)
   830			return -ENOMEM;
   831	
 > 832		of_fdt_unflatten_tree(new_fdt, NULL, &overlay_root);
   833		if (!overlay_root) {
   834			pr_err("unable to unflatten overlay_fdt\n");
   835			ret = -EINVAL;
   836			goto out_free_new_fdt;
   837		}
   838	
   839		ret = of_overlay_apply(new_fdt, overlay_root, ovcs_id);
   840		if (ret < 0) {
   841			/*
   842			 * new_fdt and overlay_root now belong to the overlay
   843			 * changeset.
   844			 * overlay changeset code is responsible for freeing them.
   845			 */
   846			goto out;
   847		}
   848	
   849		return 0;
   850	
   851	
   852	out_free_new_fdt:
   853		kfree(new_fdt);
   854	
   855	out:
   856		return ret;
   857	}
   858	EXPORT_SYMBOL_GPL(of_overlay_fdt_apply);
   859	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28088 bytes --]

  reply	other threads:[~2018-02-18  2:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-15  5:35 [PATCH v3 0/4] of: change overlay apply input data from unflattened frowand.list
2018-02-15  5:35 ` [PATCH v3 1/4] of: change overlay apply input data from unflattened to FDT frowand.list
2018-02-18  2:24   ` kbuild test robot [this message]
2018-02-15  5:35 ` [PATCH v3 2/4] of: Documentation: of_overlay_apply() replaced by of_overlay_fdt_apply() frowand.list
2018-02-15  5:35 ` [PATCH v3 3/4] of: convert unittest overlay devicetree source to sugar syntax frowand.list
2018-02-15  5:35 ` [PATCH v3 4/4] of: improve reporting invalid overlay target path frowand.list
2018-02-19  3:21   ` Rob Herring
2018-02-19  6:30     ` Frank Rowand

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=201802181051.s4lNqobC%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=devicetree@vger.kernel.org \
    --cc=frowand.list@gmail.com \
    --cc=geert@linux-m68k.org \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pantelis.antoniou@konsulko.com \
    --cc=panto@antoniou-consulting.com \
    --cc=robh+dt@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®