[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMjpGUfZwZu-ZCJj2cmq1w6B71-gQ8G27FpYdhseyq3hoZRL+Q@mail.gmail.com>
Date: Sat, 2 Jul 2011 12:38:48 -0400
From: Mike Frysinger <vapier@...too.org>
To: Jonas Bonn <jonas@...thpole.se>
Cc: linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org,
liqin.chen@...plusct.com, gxt@...c.pku.edu.cn
Subject: Re: [PATCH 1/2] asm-generic: add MMU variants of io.h functions
On Sat, Jul 2, 2011 at 11:53, Jonas Bonn wrote:
> Some of the implementations, in particular the ioremap variants, in
> asm-generic/io.h are for systems with an MMU.
do you mean "without an MMU" ?
> +#ifdef CONFIG_MMU
> +#define xlate_dev_mem_ptr(p) __va(p)
> +#else
> #define xlate_dev_mem_ptr(p) ((void *) (p))
> +#endif
i wonder if we could do:
#ifndef __va
#define __va(p) ((void *)(p))
#endif
#define xlate_dev_mem_ptr(p) __va(p)
-mike
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists