All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Daney <ddaney@avtrex.com>
To: Stuart Anderson <anderson@netsweng.com>
Cc: crossgcc@sources.redhat.com, MIPS Linux List <linux-mips@linux-mips.org>
Subject: Re: linux kernel building for mips malta target board
Date: Wed, 02 Nov 2005 17:19:51 -0800	[thread overview]
Message-ID: <436965B7.3000606@avtrex.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0511022000410.3511@trantor.stuart.netsweng.com>

Stuart Anderson wrote:
> On Wed, 2 Nov 2005, David Daney wrote:
> 
>> Is this the problem you are seeing?:
>> In file included from include/linux/nfs_fs.h:15,
>>                 from init/do_mounts.c:12:
>> include/linux/pagemap.h: In function \x18fault_in_pages_readable\x19:
>> include/linux/pagemap.h:236: error: read-only variable \x18__gu_val\x19 
>> used as \x18asm\x19 output
>> include/linux/pagemap.h:236: error: read-only variable \x18__gu_val\x19 
>> used as \x18asm\x19 output
>> include/linux/pagemap.h:236: error: read-only variable \x18__gu_val\x19 
>> used as \x18asm\x19 output
>> include/linux/pagemap.h:236: error: read-only variable \x18__gu_val\x19 
>> used as \x18asm\x19 output
>>
>> The compiler behavior has changed since 4.0.1, but I think the new 
>> behavior is correct.  I am blaming the __get_user macro in 
>> include/asm-mips/uaccess.h. It should be possible to fix it there.  
>> The alternative is to hack up include/linux/pagemap.h.
> 
> 
> __get_user() is unhappy, with tpyes that are "const". It uses __typeof()
> to create a local variable that it wants to write to. I've intended to
> have offer up a patch by now, but, too manyunexpected thing have 
> happened in the firs thalf of this week.
> 

That is my analysis as well.  The typeof converts the const char * into 
a const char which is then unsuitable as the destination in an inline asm.

David Daney

  reply	other threads:[~2005-11-03  1:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1EXLJV-0005R4-K3@real.realitydiluted.com>
2005-11-03  0:45 ` linux kernel building for mips malta target board David Daney
2005-11-03  1:02   ` Stuart Anderson
2005-11-03  1:19     ` David Daney [this message]
2005-11-03  2:20       ` Stuart Anderson
2005-11-03 16:33         ` Ralf Baechle
2006-01-18 12:52           ` Martin Michlmayr
2006-01-18 13:05             ` Ralf Baechle
2006-01-18 13:37               ` Martin Michlmayr

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=436965B7.3000606@avtrex.com \
    --to=ddaney@avtrex.com \
    --cc=anderson@netsweng.com \
    --cc=crossgcc@sources.redhat.com \
    --cc=linux-mips@linux-mips.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.