* [freescale-fslc:pr/208 8338/16182] drivers/staging/android/ion/ion_cma_heap.c:65:4: error: implicit declaration of function '__flush_dcache_area'; did you mean
@ 2021-01-10 0:05 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-10 0:05 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2844 bytes --]
tree: https://github.com/Freescale/linux-fslc pr/208
head: b8fcf77298682b8144432a871f7b98f1035249ba
commit: d39a68543c7002b7abd7f9df6d8f26fedda72ea5 [8338/16182] MGS-5565-1 staging: android: ion: Flush outer cache after zero CMA allocated memory
config: i386-randconfig-r003-20210110 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Freescale/linux-fslc/commit/d39a68543c7002b7abd7f9df6d8f26fedda72ea5
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/208
git checkout d39a68543c7002b7abd7f9df6d8f26fedda72ea5
# save the attached .config to linux build tree
make W=1 ARCH=i386
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/staging/android/ion/ion_cma_heap.c: In function 'ion_cma_allocate':
>> drivers/staging/android/ion/ion_cma_heap.c:65:4: error: implicit declaration of function '__flush_dcache_area'; did you mean 'flush_dcache_page'? [-Werror=implicit-function-declaration]
65 | __flush_dcache_area(vaddr,PAGE_SIZE);
| ^~~~~~~~~~~~~~~~~~~
| flush_dcache_page
cc1: some warnings being treated as errors
vim +65 drivers/staging/android/ion/ion_cma_heap.c
57
58 while (nr_clear_pages > 0) {
59 void *vaddr = kmap_atomic(page);
60
61 memset(vaddr, 0, PAGE_SIZE);
62 #ifdef CONFIG_ARM
63 __cpuc_flush_dcache_area(vaddr,PAGE_SIZE);
64 #else
> 65 __flush_dcache_area(vaddr,PAGE_SIZE);
66 #endif
67 kunmap_atomic(vaddr);
68 page++;
69 nr_clear_pages--;
70 }
71 #ifdef CONFIG_ARM
72 outer_flush_range(base, end);
73 #endif
74 } else {
75 void *ptr = page_address(pages);
76 memset(ptr, 0, size);
77 #ifdef CONFIG_ARM
78 __cpuc_flush_dcache_area(ptr,size);
79 outer_flush_range(__pa(ptr), __pa(ptr) + size);
80 #else
81 __flush_dcache_area(ptr,size);
82 #endif
83 }
84
85 table = kmalloc(sizeof(*table), GFP_KERNEL);
86 if (!table)
87 goto err;
88
89 ret = sg_alloc_table(table, 1, GFP_KERNEL);
90 if (ret)
91 goto free_mem;
92
93 sg_set_page(table->sgl, pages, size, 0);
94
95 buffer->priv_virt = pages;
96 buffer->sg_table = table;
97 return 0;
98
99 free_mem:
100 kfree(table);
101 err:
102 cma_release(cma_heap->cma, pages, nr_pages);
103 return -ENOMEM;
104 }
105
---
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: 36557 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-10 0:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-10 0:05 [freescale-fslc:pr/208 8338/16182] drivers/staging/android/ion/ion_cma_heap.c:65:4: error: implicit declaration of function '__flush_dcache_area'; did you mean 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.