All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Roger Pau Monne <roger.pau@citrix.com>, linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	Roger Pau Monne <roger.pau@citrix.com>,
	Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>,
	David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>,
	Boris Ostrovsky <boris.ostrovsky@oracle.com>,
	Juergen Gross <jgross@suse.com>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Dan Carpenter <error27@gmail.com>, Wei Liu <wl@xen.org>
Subject: Re: [PATCH v5 3/3] xen: add helpers to allocate unpopulated memory
Date: Tue, 1 Sep 2020 21:37:28 +0800	[thread overview]
Message-ID: <202009012129.vmYy21pK%lkp@intel.com> (raw)
In-Reply-To: <20200901083326.21264-4-roger.pau@citrix.com>

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

Hi Roger,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on xen-tip/linux-next]
[also build test ERROR on linux/master hnaz-linux-mm/master linus/master v5.9-rc3]
[cannot apply to next-20200828]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Roger-Pau-Monne/xen-balloon-fixes-for-memory-hotplug/20200901-163414
base:   https://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git linux-next
config: x86_64-randconfig-a011-20200901 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c10e63677f5d20f18010f8f68c631ddc97546f7d)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/xen/unpopulated-alloc.c:42:8: error: implicit declaration of function 'memory_add_physaddr_to_nid' [-Werror,-Wimplicit-function-declaration]
           nid = memory_add_physaddr_to_nid(pgmap->res.start);
                 ^
   1 error generated.

# https://github.com/0day-ci/linux/commit/b66f7f6a65710bd99d21d22f52fa5bc46636d425
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Roger-Pau-Monne/xen-balloon-fixes-for-memory-hotplug/20200901-163414
git checkout b66f7f6a65710bd99d21d22f52fa5bc46636d425
vim +/memory_add_physaddr_to_nid +42 drivers/xen/unpopulated-alloc.c

    17	
    18	static int fill_list(unsigned int nr_pages)
    19	{
    20		struct dev_pagemap *pgmap;
    21		void *vaddr;
    22		unsigned int i, alloc_pages = round_up(nr_pages, PAGES_PER_SECTION);
    23		int nid, ret;
    24	
    25		pgmap = kzalloc(sizeof(*pgmap), GFP_KERNEL);
    26		if (!pgmap)
    27			return -ENOMEM;
    28	
    29		pgmap->type = MEMORY_DEVICE_GENERIC;
    30		pgmap->res.name = "Xen scratch";
    31		pgmap->res.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
    32	
    33		ret = allocate_resource(&iomem_resource, &pgmap->res,
    34					alloc_pages * PAGE_SIZE, 0, -1,
    35					PAGES_PER_SECTION * PAGE_SIZE, NULL, NULL);
    36		if (ret < 0) {
    37			pr_err("Cannot allocate new IOMEM resource\n");
    38			kfree(pgmap);
    39			return ret;
    40		}
    41	
  > 42		nid = memory_add_physaddr_to_nid(pgmap->res.start);
    43	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v5 3/3] xen: add helpers to allocate unpopulated memory
Date: Tue, 01 Sep 2020 21:37:28 +0800	[thread overview]
Message-ID: <202009012129.vmYy21pK%lkp@intel.com> (raw)
In-Reply-To: <20200901083326.21264-4-roger.pau@citrix.com>

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

Hi Roger,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on xen-tip/linux-next]
[also build test ERROR on linux/master hnaz-linux-mm/master linus/master v5.9-rc3]
[cannot apply to next-20200828]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Roger-Pau-Monne/xen-balloon-fixes-for-memory-hotplug/20200901-163414
base:   https://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git linux-next
config: x86_64-randconfig-a011-20200901 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c10e63677f5d20f18010f8f68c631ddc97546f7d)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/xen/unpopulated-alloc.c:42:8: error: implicit declaration of function 'memory_add_physaddr_to_nid' [-Werror,-Wimplicit-function-declaration]
           nid = memory_add_physaddr_to_nid(pgmap->res.start);
                 ^
   1 error generated.

# https://github.com/0day-ci/linux/commit/b66f7f6a65710bd99d21d22f52fa5bc46636d425
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Roger-Pau-Monne/xen-balloon-fixes-for-memory-hotplug/20200901-163414
git checkout b66f7f6a65710bd99d21d22f52fa5bc46636d425
vim +/memory_add_physaddr_to_nid +42 drivers/xen/unpopulated-alloc.c

    17	
    18	static int fill_list(unsigned int nr_pages)
    19	{
    20		struct dev_pagemap *pgmap;
    21		void *vaddr;
    22		unsigned int i, alloc_pages = round_up(nr_pages, PAGES_PER_SECTION);
    23		int nid, ret;
    24	
    25		pgmap = kzalloc(sizeof(*pgmap), GFP_KERNEL);
    26		if (!pgmap)
    27			return -ENOMEM;
    28	
    29		pgmap->type = MEMORY_DEVICE_GENERIC;
    30		pgmap->res.name = "Xen scratch";
    31		pgmap->res.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
    32	
    33		ret = allocate_resource(&iomem_resource, &pgmap->res,
    34					alloc_pages * PAGE_SIZE, 0, -1,
    35					PAGES_PER_SECTION * PAGE_SIZE, NULL, NULL);
    36		if (ret < 0) {
    37			pr_err("Cannot allocate new IOMEM resource\n");
    38			kfree(pgmap);
    39			return ret;
    40		}
    41	
  > 42		nid = memory_add_physaddr_to_nid(pgmap->res.start);
    43	

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

  reply	other threads:[~2020-09-01 13:39 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-01  8:33 [PATCH v5 0/3] xen/balloon: fixes for memory hotplug Roger Pau Monne
2020-09-01  8:33 ` [PATCH v5 1/3] xen/balloon: add header guard Roger Pau Monne
2020-09-01  8:33 ` [PATCH v5 2/3] memremap: rename MEMORY_DEVICE_DEVDAX to MEMORY_DEVICE_GENERIC Roger Pau Monne
2020-09-01  8:33   ` Roger Pau Monne
2020-09-01  8:54   ` Pankaj Gupta
2020-09-01  8:54     ` Pankaj Gupta
2020-09-01  8:54     ` Pankaj Gupta
2020-09-24 19:02   ` Dan Williams
2020-09-24 19:02     ` Dan Williams
2020-09-24 19:02     ` Dan Williams
2020-09-24 19:02     ` Dan Williams
2020-09-01  8:33 ` [PATCH v5 3/3] xen: add helpers to allocate unpopulated memory Roger Pau Monne
2020-09-01  8:33   ` Roger Pau Monne
2020-09-01  8:33   ` Roger Pau Monne
2020-09-01 13:37   ` kernel test robot [this message]
2020-09-01 13:37     ` kernel test robot
2020-09-01 14:45   ` Roger Pau Monné
2020-09-01 14:45     ` Roger Pau Monné
2020-09-01 14:54     ` Jürgen Groß
2020-09-01 14:54       ` Jürgen Groß
2020-09-03 15:30   ` Jürgen Groß
2020-09-03 15:30     ` Jürgen Groß
2020-09-03 16:38     ` Roger Pau Monné
2020-09-03 16:38       ` Roger Pau Monné
2020-09-04  7:00       ` Jürgen Groß
2020-09-04  7:00         ` Jürgen Groß
2020-09-04  8:42         ` Roger Pau Monné
2020-09-04  8:42           ` Roger Pau Monné
2020-09-04 12:40           ` Jürgen Groß
2020-09-04 12:40             ` Jürgen Groß
2020-09-04 12:40 ` [PATCH v5 0/3] xen/balloon: fixes for memory hotplug Jürgen Groß

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=202009012129.vmYy21pK%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=airlied@linux.ie \
    --cc=boris.ostrovsky@oracle.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=daniel@ffwll.ch \
    --cc=error27@gmail.com \
    --cc=jgross@suse.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oleksandr_andrushchenko@epam.com \
    --cc=roger.pau@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=wl@xen.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 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.