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>,
	cpandya@codeaurora.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 2/2] of: add early boot allocation of of_find_node_by_phandle() cache
Date: Sat, 3 Mar 2018 15:38:59 +0800	[thread overview]
Message-ID: <201803031404.NNgg6d8N%fengguang.wu@intel.com> (raw)
In-Reply-To: <1519844656-16443-3-git-send-email-frowand.list@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2422 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-rc3 next-20180302]
[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-cache-phandle-nodes-to-reduce-cost-of-of_find_node_by_phandle/20180303-090055
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: tile-allmodconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 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
        # save the attached .config to linux build tree
        make.cross ARCH=tile 

All errors (new ones prefixed by >>):

   drivers//of/base.c: In function 'of_core_init':
>> drivers//of/base.c:187:2: error: implicit declaration of function 'memblock_free'; did you mean 'ptlock_free'? [-Werror=implicit-function-declaration]
     memblock_free(__pa(phandle_cache), size);
     ^~~~~~~~~~~~~
     ptlock_free
   cc1: some warnings being treated as errors

vim +187 drivers//of/base.c

   178	
   179	void __init of_core_init(void)
   180	{
   181		unsigned long flags;
   182		struct device_node *np;
   183		phys_addr_t size;
   184	
   185		raw_spin_lock_irqsave(&devtree_lock, flags);
   186		size = (phandle_cache_mask + 1) * sizeof(*phandle_cache);
 > 187		memblock_free(__pa(phandle_cache), size);
   188		phandle_cache = NULL;
   189		raw_spin_unlock_irqrestore(&devtree_lock, flags);
   190	
   191		of_populate_phandle_cache();
   192	
   193		/* Create the kset, and register existing nodes */
   194		mutex_lock(&of_mutex);
   195		of_kset = kset_create_and_add("devicetree", NULL, firmware_kobj);
   196		if (!of_kset) {
   197			mutex_unlock(&of_mutex);
   198			pr_err("failed to register existing nodes\n");
   199			return;
   200		}
   201		for_each_of_allnodes(np)
   202			__of_attach_node_sysfs(np);
   203		mutex_unlock(&of_mutex);
   204	
   205		/* Symlink in /proc as required by userspace ABI */
   206		if (of_root)
   207			proc_symlink("device-tree", NULL, "/sys/firmware/devicetree/base");
   208	}
   209	

---
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: 51805 bytes --]

      parent reply	other threads:[~2018-03-03  7:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-28 19:04 [PATCH v4 0/2] of: cache phandle nodes to reduce cost of of_find_node_by_phandle() frowand.list
2018-02-28 19:04 ` [PATCH v4 1/2] " frowand.list
2018-02-28 19:31   ` Andy Shevchenko
2018-02-28 19:44     ` Frank Rowand
2018-02-28 20:19       ` Andy Shevchenko
2018-02-28 20:54         ` Rob Herring
2018-02-28 20:58         ` Frank Rowand
2018-02-28 19:04 ` [PATCH v4 2/2] of: add early boot allocation of of_find_node_by_phandle() cache frowand.list
2018-03-03  5:25   ` [of] b013aa45d2: kernel_BUG_at_arch/x86/mm/physaddr.c kernel test robot
2018-03-03  7:38   ` kbuild test robot [this message]

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=201803031404.NNgg6d8N%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=cpandya@codeaurora.org \
    --cc=devicetree@vger.kernel.org \
    --cc=frowand.list@gmail.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --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®