All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 2/3] dma-buf: heaps: add chunk heap to dmabuf heaps
Date: Tue, 18 Aug 2020 18:17:43 +0800	[thread overview]
Message-ID: <202008181831.ob1uJOPf%lkp@intel.com> (raw)
In-Reply-To: <20200818080415.7531-3-hyesoo.yu@samsung.com>

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

Hi Hyesoo,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.9-rc1 next-20200818]
[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/Hyesoo-Yu/Chunk-Heap-Support-on-DMA-HEAP/20200818-154733
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 06a4ec1d9dc652e17ee3ac2ceb6c7cf6c2b75cdd
config: microblaze-randconfig-r016-20200818 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
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
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze 

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/dma-buf/heaps/chunk_heap.c: In function 'chunk_alloc_pages':
>> drivers/dma-buf/heaps/chunk_heap.c:72:9: error: implicit declaration of function 'alloc_pages_bulk'; did you mean 'alloc_pages_node'? [-Werror=implicit-function-declaration]
      72 |   ret = alloc_pages_bulk(base, base + pageblock_nr_pages, MIGRATE_CMA,
         |         ^~~~~~~~~~~~~~~~
         |         alloc_pages_node
   cc1: some warnings being treated as errors

# https://github.com/0day-ci/linux/commit/6032a6b2cbc0a798f6548d6f58fdd46eccaaf764
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Hyesoo-Yu/Chunk-Heap-Support-on-DMA-HEAP/20200818-154733
git checkout 6032a6b2cbc0a798f6548d6f58fdd46eccaaf764
vim +72 drivers/dma-buf/heaps/chunk_heap.c

    54	
    55	static int chunk_alloc_pages(struct chunk_heap *chunk_heap, struct page **pages,
    56				     unsigned int order, unsigned int count)
    57	{
    58		unsigned long base;
    59		unsigned int i = 0, nr_block = 0, nr_elem, ret;
    60	
    61		while (count) {
    62			/*
    63			 * If the number of scanned page block is the same as max block,
    64			 * the tries of allocation fails.
    65			 */
    66			if (nr_block++ == chunk_heap->max_num_pageblocks) {
    67				ret = -ENOMEM;
    68				goto err_bulk;
    69			}
    70			base = chunk_get_next_pfn(chunk_heap);
    71			nr_elem = min_t(unsigned int, count, pageblock_nr_pages >> order);
  > 72			ret = alloc_pages_bulk(base, base + pageblock_nr_pages, MIGRATE_CMA,
    73					       GFP_KERNEL, order, nr_elem, pages + i);
    74			if (ret < 0)
    75				goto err_bulk;
    76	
    77			i += ret;
    78			count -= ret;
    79		}
    80	
    81		return 0;
    82	
    83	err_bulk:
    84		while (i-- > 0)
    85			__free_pages(pages[i], order);
    86	
    87		return ret;
    88	}
    89	

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Hyesoo Yu <hyesoo.yu@samsung.com>, sumit.semwal@linaro.org
Cc: kbuild-all@lists.01.org, minchan@kernel.org,
	akpm@linux-foundation.org, iamjoonsoo.kim@lge.com,
	joaodias@google.com, linux-mm@kvack.org, pullip.cho@samsung.com,
	surenb@google.com, vbabka@suse.cz, afd@ti.com
Subject: Re: [PATCH 2/3] dma-buf: heaps: add chunk heap to dmabuf heaps
Date: Tue, 18 Aug 2020 18:17:43 +0800	[thread overview]
Message-ID: <202008181831.ob1uJOPf%lkp@intel.com> (raw)
In-Reply-To: <20200818080415.7531-3-hyesoo.yu@samsung.com>

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

Hi Hyesoo,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.9-rc1 next-20200818]
[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/Hyesoo-Yu/Chunk-Heap-Support-on-DMA-HEAP/20200818-154733
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 06a4ec1d9dc652e17ee3ac2ceb6c7cf6c2b75cdd
config: microblaze-randconfig-r016-20200818 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
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
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze 

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/dma-buf/heaps/chunk_heap.c: In function 'chunk_alloc_pages':
>> drivers/dma-buf/heaps/chunk_heap.c:72:9: error: implicit declaration of function 'alloc_pages_bulk'; did you mean 'alloc_pages_node'? [-Werror=implicit-function-declaration]
      72 |   ret = alloc_pages_bulk(base, base + pageblock_nr_pages, MIGRATE_CMA,
         |         ^~~~~~~~~~~~~~~~
         |         alloc_pages_node
   cc1: some warnings being treated as errors

# https://github.com/0day-ci/linux/commit/6032a6b2cbc0a798f6548d6f58fdd46eccaaf764
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Hyesoo-Yu/Chunk-Heap-Support-on-DMA-HEAP/20200818-154733
git checkout 6032a6b2cbc0a798f6548d6f58fdd46eccaaf764
vim +72 drivers/dma-buf/heaps/chunk_heap.c

    54	
    55	static int chunk_alloc_pages(struct chunk_heap *chunk_heap, struct page **pages,
    56				     unsigned int order, unsigned int count)
    57	{
    58		unsigned long base;
    59		unsigned int i = 0, nr_block = 0, nr_elem, ret;
    60	
    61		while (count) {
    62			/*
    63			 * If the number of scanned page block is the same as max block,
    64			 * the tries of allocation fails.
    65			 */
    66			if (nr_block++ == chunk_heap->max_num_pageblocks) {
    67				ret = -ENOMEM;
    68				goto err_bulk;
    69			}
    70			base = chunk_get_next_pfn(chunk_heap);
    71			nr_elem = min_t(unsigned int, count, pageblock_nr_pages >> order);
  > 72			ret = alloc_pages_bulk(base, base + pageblock_nr_pages, MIGRATE_CMA,
    73					       GFP_KERNEL, order, nr_elem, pages + i);
    74			if (ret < 0)
    75				goto err_bulk;
    76	
    77			i += ret;
    78			count -= ret;
    79		}
    80	
    81		return 0;
    82	
    83	err_bulk:
    84		while (i-- > 0)
    85			__free_pages(pages[i], order);
    86	
    87		return ret;
    88	}
    89	

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

  parent reply	other threads:[~2020-08-18 10:17 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20200818074547epcas2p21e0c2442873d03800c7bc2c3e76405d6@epcas2p2.samsung.com>
2020-08-18  8:04 ` [PATCH 0/3] Chunk Heap Support on DMA-HEAP Hyesoo Yu
2020-08-18  8:04   ` Hyesoo Yu
2020-08-18  8:04   ` [PATCH 1/3] dma-buf: add missing EXPORT_SYMBOL_GPL() for dma heaps Hyesoo Yu
2020-08-18  8:04     ` Hyesoo Yu
2020-08-18  8:04   ` [PATCH 2/3] dma-buf: heaps: add chunk heap to dmabuf heaps Hyesoo Yu
2020-08-18  8:04     ` Hyesoo Yu
2020-08-18 10:11     ` David Hildenbrand
2020-08-18 10:11       ` David Hildenbrand
2020-08-18 10:17     ` kernel test robot [this message]
2020-08-18 10:17       ` kernel test robot
2020-08-18  8:04   ` [PATCH 3/3] dma-heap: Devicetree binding for chunk heap Hyesoo Yu
2020-08-18  8:04     ` Hyesoo Yu
2020-08-18 16:48     ` Rob Herring
2020-08-18 16:48       ` Rob Herring
2020-08-21  8:21       ` Hyesoo Yu
2020-08-21  8:21         ` Hyesoo Yu
2020-08-18 10:55   ` [PATCH 0/3] Chunk Heap Support on DMA-HEAP Brian Starkey
2020-08-18 10:55     ` Brian Starkey
2020-08-19  3:46     ` Cho KyongHo
2020-08-19  3:46       ` Cho KyongHo
2020-08-19 13:22       ` Brian Starkey
2020-08-19 13:22         ` Brian Starkey
2020-08-21  7:38         ` Cho KyongHo
2020-08-21  7:38           ` Cho KyongHo
2020-08-18 20:55   ` John Stultz
2020-08-18 20:55     ` John Stultz

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=202008181831.ob1uJOPf%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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.