linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Re: [next:master 2145/2346] drivers/base/dma-mapping.c:311: undefined reference to `get_vm_area_caller'
  2014-08-26 21:22 [next:master 2145/2346] drivers/base/dma-mapping.c:311: undefined reference to `get_vm_area_caller' kbuild test robot
@ 2014-08-26 20:28 ` Laura Abbott
  0 siblings, 0 replies; 2+ messages in thread
From: Laura Abbott @ 2014-08-26 20:28 UTC (permalink / raw)
  To: kbuild test robot; +Cc: Linux Memory Management List, Andrew Morton, kbuild-all

On 8/26/2014 2:22 PM, kbuild test robot wrote:
> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   1c9e4561f3b2afffcda007eae9d0ddd25525f50e
> commit: fa44abcad042144651fa9cd0f698c7c40a59d60f [2145/2346] common: dma-mapping: introduce common remapping functions
> config: make ARCH=microblaze nommu_defconfig
> 
> All error/warnings:
> 
>    drivers/built-in.o: In function `dma_common_pages_remap':
>>> drivers/base/dma-mapping.c:311: undefined reference to `get_vm_area_caller'
>>> drivers/base/dma-mapping.c:315: undefined reference to `map_vm_area'
>    drivers/built-in.o: In function `dma_common_free_remap':
>>> drivers/base/dma-mapping.c:328: undefined reference to `find_vm_area'
> 
> vim +311 drivers/base/dma-mapping.c
> 
>    305	void *dma_common_pages_remap(struct page **pages, size_t size,
>    306				unsigned long vm_flags, pgprot_t prot,
>    307				const void *caller)
>    308	{
>    309		struct vm_struct *area;
>    310	
>  > 311		area = get_vm_area_caller(size, vm_flags, caller);
>    312		if (!area)
>    313			return NULL;
>    314	
>    315		if (map_vm_area(area, prot, pages)) {
>    316			vunmap(area->addr);
>    317			return NULL;
>    318		}
>    319	
>    320		return area->addr;
>    321	}
>    322	
>    323	/*
>    324	 * unmaps a range previously mapped by dma_common_*_remap
>    325	 */
>    326	void dma_common_free_remap(void *cpu_addr, size_t size, unsigned long vm_flags)
>    327	{
>    328		struct vm_struct *area = find_vm_area(cpu_addr);
>    329	
>    330		if (!area || (area->flags & vm_flags) != vm_flags) {
>    331			WARN(1, "trying to free invalid coherent area: %p\n", cpu_addr);
> 

Based on top of my previous patch

----8<------

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [next:master 2145/2346] drivers/base/dma-mapping.c:311: undefined reference to `get_vm_area_caller'
@ 2014-08-26 21:22 kbuild test robot
  2014-08-26 20:28 ` Laura Abbott
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2014-08-26 21:22 UTC (permalink / raw)
  To: Laura Abbott; +Cc: Linux Memory Management List, Andrew Morton, kbuild-all

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   1c9e4561f3b2afffcda007eae9d0ddd25525f50e
commit: fa44abcad042144651fa9cd0f698c7c40a59d60f [2145/2346] common: dma-mapping: introduce common remapping functions
config: make ARCH=microblaze nommu_defconfig

All error/warnings:

   drivers/built-in.o: In function `dma_common_pages_remap':
>> drivers/base/dma-mapping.c:311: undefined reference to `get_vm_area_caller'
>> drivers/base/dma-mapping.c:315: undefined reference to `map_vm_area'
   drivers/built-in.o: In function `dma_common_free_remap':
>> drivers/base/dma-mapping.c:328: undefined reference to `find_vm_area'

vim +311 drivers/base/dma-mapping.c

   305	void *dma_common_pages_remap(struct page **pages, size_t size,
   306				unsigned long vm_flags, pgprot_t prot,
   307				const void *caller)
   308	{
   309		struct vm_struct *area;
   310	
 > 311		area = get_vm_area_caller(size, vm_flags, caller);
   312		if (!area)
   313			return NULL;
   314	
   315		if (map_vm_area(area, prot, pages)) {
   316			vunmap(area->addr);
   317			return NULL;
   318		}
   319	
   320		return area->addr;
   321	}
   322	
   323	/*
   324	 * unmaps a range previously mapped by dma_common_*_remap
   325	 */
   326	void dma_common_free_remap(void *cpu_addr, size_t size, unsigned long vm_flags)
   327	{
   328		struct vm_struct *area = find_vm_area(cpu_addr);
   329	
   330		if (!area || (area->flags & vm_flags) != vm_flags) {
   331			WARN(1, "trying to free invalid coherent area: %p\n", cpu_addr);

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-26 20:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-26 21:22 [next:master 2145/2346] drivers/base/dma-mapping.c:311: undefined reference to `get_vm_area_caller' kbuild test robot
2014-08-26 20:28 ` Laura Abbott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).