From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [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
Date: Sun, 10 Jan 2021 08:05:08 +0800 [thread overview]
Message-ID: <202101100802.DWASO1WD-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-01-10 0:05 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=202101100802.DWASO1WD-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.