linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Laura Abbott <lauraa@codeaurora.org>
To: kbuild test robot <fengguang.wu@intel.com>
Cc: Linux Memory Management List <linux-mm@kvack.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	kbuild-all@01.org
Subject: Re: [next:master 2145/2346] drivers/base/dma-mapping.c:294:2: error: implicit declaration of function 'dma_common_pages_remap'
Date: Tue, 26 Aug 2014 13:20:01 -0700	[thread overview]
Message-ID: <53FCEBF1.6030006@codeaurora.org> (raw)
In-Reply-To: <53fc8917.8odw5fgQ/XJIRB7e%fengguang.wu@intel.com>

On 8/26/2014 6:18 AM, 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=mn10300 asb2364_defconfig
> 
> All error/warnings:
> 
>    drivers/base/dma-mapping.c: In function 'dma_common_contiguous_remap':
>>> drivers/base/dma-mapping.c:294:2: error: implicit declaration of function 'dma_common_pages_remap' [-Werror=implicit-function-declaration]
>      ptr = dma_common_pages_remap(pages, size, vm_flags, prot, caller);
>      ^
>>> drivers/base/dma-mapping.c:294:6: warning: assignment makes pointer from integer without a cast
>      ptr = dma_common_pages_remap(pages, size, vm_flags, prot, caller);
>          ^
>    drivers/base/dma-mapping.c: At top level:
>>> drivers/base/dma-mapping.c:305:7: error: conflicting types for 'dma_common_pages_remap'
>     void *dma_common_pages_remap(struct page **pages, size_t size,
>           ^
>    drivers/base/dma-mapping.c:294:8: note: previous implicit declaration of 'dma_common_pages_remap' was here
>      ptr = dma_common_pages_remap(pages, size, vm_flags, prot, caller);
>            ^
>    cc1: some warnings being treated as errors
> 
> vim +/dma_common_pages_remap +294 drivers/base/dma-mapping.c
> 
>    288		if (!pages)
>    289			return NULL;
>    290	
>    291		for (i = 0, pfn = page_to_pfn(page); i < (size >> PAGE_SHIFT); i++)
>    292			pages[i] = pfn_to_page(pfn + i);
>    293	
>  > 294		ptr = dma_common_pages_remap(pages, size, vm_flags, prot, caller);
>    295	
>    296		kfree(pages);
>    297	
>    298		return ptr;
>    299	}
>    300	
>    301	/*
>    302	 * remaps an array of PAGE_SIZE pages into another vm_area
>    303	 * Cannot be used in non-sleeping contexts
>    304	 */
>  > 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	{
> 

I think this should work

----8<-----

      reply	other threads:[~2014-08-26 20:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-26 13:18 [next:master 2145/2346] drivers/base/dma-mapping.c:294:2: error: implicit declaration of function 'dma_common_pages_remap' kbuild test robot
2014-08-26 20:20 ` Laura Abbott [this message]

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=53FCEBF1.6030006@codeaurora.org \
    --to=lauraa@codeaurora.org \
    --cc=akpm@linux-foundation.org \
    --cc=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.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 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).