All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Ungerer <gerg@snapgear.com>
To: <dedekind1@gmail.com>
Cc: linux-mtd@lists.infradead.org, uclinux-dev@uclinux.org,
	Greg Ungerer <gerg@uclinux.org>
Subject: Re: [PATCH v2 1/2] mtd: fix wrong usage of ioremap_nocache() in uclinux.c map driver
Date: Sun, 19 Aug 2012 09:11:33 +1000	[thread overview]
Message-ID: <50302125.9070103@snapgear.com> (raw)
In-Reply-To: <1345209400.27859.86.camel@sauron.fi.intel.com>

Hi Artem,

On 08/17/2012 11:16 PM, Artem Bityutskiy wrote:
> On Thu, 2012-07-19 at 15:42 +1000, gerg@snapgear.com wrote:
>> From: Greg Ungerer <gerg@uclinux.org>
>>
>> The uclinux.c mapping driver uses ioremap_nocache() to map its physical
>> mapping address to a system virtual address. Problem is that the region
>> it is mapping is not device memory. It is ordinary system RAM. On most
>> non-MMU systems this doesn't matter, and the mapping is always a 1:1
>> translation of the address. On paged memory systems on some architectures
>> the page table mappings are not compatible between normal RAM and device
>> memory.
>
> I cannot compile m68k because of the following errors:
>
> arch/m68k/platform/coldfire/clk.c:54:13: error: redefinition of 'clk_get'
> include/linux/clk.h:281:27: note: previous definition of 'clk_get' was here
> arch/m68k/platform/coldfire/clk.c:68:5: error: redefinition of 'clk_enable'
> include/linux/clk.h:295:19: note: previous definition of 'clk_enable' was here
> arch/m68k/platform/coldfire/clk.c:80:6: error: redefinition of 'clk_disable'
> include/linux/clk.h:300:20: note: previous definition of 'clk_disable' was here
> arch/m68k/platform/coldfire/clk.c:90:6: error: redefinition of 'clk_put'
> include/linux/clk.h:291:20: note: previous definition of 'clk_put' was here
> arch/m68k/platform/coldfire/clk.c:97:15: error: redefinition of 'clk_get_rate'
> include/linux/clk.h:302:29: note: previous definition of 'clk_get_rate' was here
> arch/m68k/platform/coldfire/clk.c:150:13: error: redefinition of 'devm_clk_get'
> include/linux/clk.h:286:27: note: previous definition of 'devm_clk_get' was here
> make[2]: *** [arch/m68k/platform/coldfire/clk.o] Error 1
>
> so I cannot compile-test this patch. Do you have a work-around patch for
> that compilation issue?

Yes, apply this patch:

   http://marc.info/?l=linux-m68k&m=134397575425772&w=2

It will be going to Linus this week.

Regards
Greg


-- 
------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     gerg@snapgear.com
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888
8 Gardner Close,                            FAX:         +61 7 3891 3630
Milton, QLD, 4064, Australia                WEB: http://www.SnapGear.com

  reply	other threads:[~2012-08-18 23:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-19  5:42 [PATCH v2 1/2] mtd: fix wrong usage of ioremap_nocache() in uclinux.c map driver gerg
2012-07-19  5:42 ` [PATCH v2 2/2] mtd: allow uclinux map driver to be used on any ColdFire CPU platform gerg
2012-08-17 13:16 ` [PATCH v2 1/2] mtd: fix wrong usage of ioremap_nocache() in uclinux.c map driver Artem Bityutskiy
2012-08-18 23:11   ` Greg Ungerer [this message]
2012-08-20  9:17 ` Artem Bityutskiy

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=50302125.9070103@snapgear.com \
    --to=gerg@snapgear.com \
    --cc=dedekind1@gmail.com \
    --cc=gerg@uclinux.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=uclinux-dev@uclinux.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.