All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans-Christian Egtvedt <egtvedt@samfundet.no>
To: Chen Gang <gang.chen.5i5j@gmail.com>
Cc: "Håvard Skinnemoen" <hskinnemoen@gmail.com>,
	"Andrew Morton" <akpm@linux-foundation.org>,
	havard@skinnemoen.net, josh.wu@atmel.com,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] arch: avr32: include: asm: add generic ioremap_wc() definition in "io.h"
Date: Mon, 17 Feb 2014 10:53:14 +0100	[thread overview]
Message-ID: <20140217095314.GC20665@samfundet.no> (raw)
In-Reply-To: <5300A372.1050501@gmail.com>

Around Sun 16 Feb 2014 19:39:30 +0800 or thereabout, Chen Gang wrote:
> Need generic ioremap_wc(), or can not pass compiling with allmodconfig,
> the related error:
> 
>     CC [M]  drivers/gpu/drm/drm_bufs.o
>   drivers/gpu/drm/drm_bufs.c: In function 'drm_addmap_core':
>   drivers/gpu/drm/drm_bufs.c:217: error: implicit declaration of function 'ioremap_wc'
>   drivers/gpu/drm/drm_bufs.c:218: warning: assignment makes pointer from integer without a cast

I guess this patch needs to go in before pulling in vga.h.

> 
> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>

Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>

> ---
>  arch/avr32/include/asm/io.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/avr32/include/asm/io.h b/arch/avr32/include/asm/io.h
> index fc6483f..4f5ec2b 100644
> --- a/arch/avr32/include/asm/io.h
> +++ b/arch/avr32/include/asm/io.h
> @@ -295,6 +295,8 @@ extern void __iounmap(void __iomem *addr);
>  #define iounmap(addr)				\
>  	__iounmap(addr)
>  
> +#define ioremap_wc ioremap_nocache
> +
>  #define cached(addr) P1SEGADDR(addr)
>  #define uncached(addr) P2SEGADDR(addr)
>  
-- 
mvh
Hans-Christian Egtvedt

      reply	other threads:[~2014-02-17  9:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-16 11:39 [PATCH] arch: avr32: include: asm: add generic ioremap_wc() definition in "io.h" Chen Gang
2014-02-17  9:53 ` Hans-Christian Egtvedt [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=20140217095314.GC20665@samfundet.no \
    --to=egtvedt@samfundet.no \
    --cc=akpm@linux-foundation.org \
    --cc=gang.chen.5i5j@gmail.com \
    --cc=havard@skinnemoen.net \
    --cc=hskinnemoen@gmail.com \
    --cc=josh.wu@atmel.com \
    --cc=linux-kernel@vger.kernel.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.