* [android-common:incoming-android15-6.6-desktop-chromeos 501/501] drivers/dma-buf/dma-heap.c:430:6: warning: no previous prototype for function 'dma_heap_try_get_pool_size_kb'
@ 2025-03-27 0:44 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-27 0:44 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common incoming-android15-6.6-desktop-chromeos
head: 762a13f385d861193f9d810f84780bdd56146d74
commit: 39928be70c26ba280233363e634e7bd47da4cd10 [501/501] FROMLIST: dma-heap: Add proper kref handling on dma-buf heaps
config: arm-randconfig-003-20250327 (https://download.01.org/0day-ci/archive/20250327/202503270849.RBK9EdT1-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project c2692afc0a92cd5da140dfcdfff7818a5b8ce997)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250327/202503270849.RBK9EdT1-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503270849.RBK9EdT1-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/dma-buf/dma-heap.c:56:18: warning: no previous prototype for function 'dma_heap_find' [-Wmissing-prototypes]
56 | struct dma_heap *dma_heap_find(const char *name)
| ^
drivers/dma-buf/dma-heap.c:56:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
56 | struct dma_heap *dma_heap_find(const char *name)
| ^
| static
drivers/dma-buf/dma-heap.c:74:6: warning: no previous prototype for function 'dma_heap_buffer_free' [-Wmissing-prototypes]
74 | void dma_heap_buffer_free(struct dma_buf *dmabuf)
| ^
drivers/dma-buf/dma-heap.c:74:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
74 | void dma_heap_buffer_free(struct dma_buf *dmabuf)
| ^
| static
drivers/dma-buf/dma-heap.c:95:8: error: call to undeclared function '__PAGE_ALIGN'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
95 | len = __PAGE_ALIGN(len);
| ^
drivers/dma-buf/dma-heap.c:80:17: warning: no previous prototype for function 'dma_heap_buffer_alloc' [-Wmissing-prototypes]
80 | struct dma_buf *dma_heap_buffer_alloc(struct dma_heap *heap, size_t len,
| ^
drivers/dma-buf/dma-heap.c:80:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
80 | struct dma_buf *dma_heap_buffer_alloc(struct dma_heap *heap, size_t len,
| ^
| static
drivers/dma-buf/dma-heap.c:108:5: warning: no previous prototype for function 'dma_heap_bufferfd_alloc' [-Wmissing-prototypes]
108 | int dma_heap_bufferfd_alloc(struct dma_heap *heap, size_t len,
| ^
drivers/dma-buf/dma-heap.c:108:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
108 | int dma_heap_bufferfd_alloc(struct dma_heap *heap, size_t len,
| ^
| static
drivers/dma-buf/dma-heap.c:287:16: warning: no previous prototype for function 'dma_heap_get_dev' [-Wmissing-prototypes]
287 | struct device *dma_heap_get_dev(struct dma_heap *heap)
| ^
drivers/dma-buf/dma-heap.c:287:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
287 | struct device *dma_heap_get_dev(struct dma_heap *heap)
| ^
| static
drivers/dma-buf/dma-heap.c:400:13: error: redefinition of 'dma_heap_release'
400 | static void dma_heap_release(struct kref *ref)
| ^
drivers/dma-buf/dma-heap.c:253:13: note: previous definition is here
253 | static void dma_heap_release(struct kref *ref)
| ^
drivers/dma-buf/dma-heap.c:420:6: error: redefinition of 'dma_heap_put'
420 | void dma_heap_put(struct dma_heap *heap)
| ^
drivers/dma-buf/dma-heap.c:268:6: note: previous definition is here
268 | void dma_heap_put(struct dma_heap *h)
| ^
>> drivers/dma-buf/dma-heap.c:430:6: warning: no previous prototype for function 'dma_heap_try_get_pool_size_kb' [-Wmissing-prototypes]
430 | long dma_heap_try_get_pool_size_kb(void)
| ^
drivers/dma-buf/dma-heap.c:430:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
430 | long dma_heap_try_get_pool_size_kb(void)
| ^
| static
6 warnings and 3 errors generated.
vim +/dma_heap_try_get_pool_size_kb +430 drivers/dma-buf/dma-heap.c
c02a81fba74fe34 Andrew F. Davis 2019-12-03 429
66c7ba200ce6412 Sooyong Suk 2024-07-04 @430 long dma_heap_try_get_pool_size_kb(void)
66c7ba200ce6412 Sooyong Suk 2024-07-04 431 {
66c7ba200ce6412 Sooyong Suk 2024-07-04 432 struct dma_heap *heap;
66c7ba200ce6412 Sooyong Suk 2024-07-04 433 u64 total_pool_size = 0;
66c7ba200ce6412 Sooyong Suk 2024-07-04 434
66c7ba200ce6412 Sooyong Suk 2024-07-04 435 if (!mutex_trylock(&heap_list_lock))
66c7ba200ce6412 Sooyong Suk 2024-07-04 436 return -1;
66c7ba200ce6412 Sooyong Suk 2024-07-04 437
66c7ba200ce6412 Sooyong Suk 2024-07-04 438 list_for_each_entry(heap, &heap_list, list) {
66c7ba200ce6412 Sooyong Suk 2024-07-04 439 if (heap->ops->get_pool_size)
66c7ba200ce6412 Sooyong Suk 2024-07-04 440 total_pool_size += heap->ops->get_pool_size(heap);
66c7ba200ce6412 Sooyong Suk 2024-07-04 441 }
66c7ba200ce6412 Sooyong Suk 2024-07-04 442 mutex_unlock(&heap_list_lock);
66c7ba200ce6412 Sooyong Suk 2024-07-04 443
66c7ba200ce6412 Sooyong Suk 2024-07-04 444 return (long)(total_pool_size / 1024);
66c7ba200ce6412 Sooyong Suk 2024-07-04 445 }
66c7ba200ce6412 Sooyong Suk 2024-07-04 446 EXPORT_SYMBOL_GPL(dma_heap_try_get_pool_size_kb);
66c7ba200ce6412 Sooyong Suk 2024-07-04 447
:::::: The code at line 430 was first introduced by commit
:::::: 66c7ba200ce6412ebf39d89f8f59806a2a48e9cc ANDROID: dma-buf: add dma_heap_try_get_pool_size_kb for vendor hook
:::::: TO: Sooyong Suk <s.suk@samsung.corp-partner.google.com>
:::::: CC: Suren Baghdasaryan <surenb@google.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-03-27 0:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-27 0:44 [android-common:incoming-android15-6.6-desktop-chromeos 501/501] drivers/dma-buf/dma-heap.c:430:6: warning: no previous prototype for function 'dma_heap_try_get_pool_size_kb' kernel test robot
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.