All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [ti:ti-rt-linux-5.4.y 4425/13576] drivers/dma-buf/heaps/carveout-heap.c:249:5: warning: no previous prototype for 'carveout_dma_heap_export'
Date: Sat, 09 Jan 2021 04:19:04 +0800	[thread overview]
Message-ID: <202101090459.pBoiNGdM-lkp@intel.com> (raw)

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

Hi Andrew,

FYI, the error/warning still remains.

tree:   git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.4.y
head:   cefb68e8a844702d06a3680ad206f4ecf0c655d6
commit: d5ba15e3647df3f2bece61d36cca4a536939623b [4425/13576] dma-buf: heaps: Add Carveout heap to dmabuf heaps
config: nios2-allyesconfig (attached as .config)
compiler: nios2-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
        git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
        git fetch --no-tags ti ti-rt-linux-5.4.y
        git checkout d5ba15e3647df3f2bece61d36cca4a536939623b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2 

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

All warnings (new ones prefixed by >>):

>> drivers/dma-buf/heaps/carveout-heap.c:249:5: warning: no previous prototype for 'carveout_dma_heap_export' [-Wmissing-prototypes]
     249 | int carveout_dma_heap_export(phys_addr_t base, size_t size, const char *name)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~


vim +/carveout_dma_heap_export +249 drivers/dma-buf/heaps/carveout-heap.c

   248	
 > 249	int carveout_dma_heap_export(phys_addr_t base, size_t size, const char *name)
   250	{
   251		struct carveout_dma_heap *carveout_dma_heap;
   252		struct dma_heap_export_info exp_info;
   253		int ret;
   254	
   255		carveout_dma_heap = kzalloc(sizeof(*carveout_dma_heap), GFP_KERNEL);
   256		if (!carveout_dma_heap)
   257			return -ENOMEM;
   258	
   259		carveout_dma_heap->pool = gen_pool_create(PAGE_SHIFT, NUMA_NO_NODE);
   260		if (IS_ERR(carveout_dma_heap->pool)) {
   261			pr_err("Carveout Heap: Could not create memory pool\n");
   262			ret = PTR_ERR(carveout_dma_heap->pool);
   263			goto free_carveout_dma_heap;
   264		}
   265		ret = gen_pool_add(carveout_dma_heap->pool, base, size, NUMA_NO_NODE);
   266		if (ret) {
   267			pr_err("Carveout Heap: Could not add memory to pool\n");
   268			goto free_pool;
   269		}
   270	
   271		exp_info.name = name;
   272		exp_info.ops = &carveout_dma_heap_ops;
   273		exp_info.priv = carveout_dma_heap;
   274		carveout_dma_heap->heap = dma_heap_add(&exp_info);
   275		if (IS_ERR(carveout_dma_heap->heap)) {
   276			pr_err("Carveout Heap: Could not add DMA-Heap\n");
   277			ret = PTR_ERR(carveout_dma_heap->heap);
   278			goto free_pool;
   279		}
   280	
   281		pr_info("Carveout Heap: Exported %zu MiB at %pa\n", size / SZ_1M, &base);
   282	
   283		return 0;
   284	
   285	free_pool:
   286		gen_pool_destroy(carveout_dma_heap->pool);
   287	free_carveout_dma_heap:
   288		kfree(carveout_dma_heap);
   289		return ret;
   290	}
   291	

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

                 reply	other threads:[~2021-01-08 20:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202101090459.pBoiNGdM-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.