linux-mips
[Top] [All Lists]

Re: linux kernel building for mips malta target board

To: MIPS Linux List <linux-mips@linux-mips.org>
Subject: Re: linux kernel building for mips malta target board
From: Martin Michlmayr <tbm@cyrius.com>
Date: Wed, 18 Jan 2006 12:52:03 +0000
Cc: Stuart Anderson <anderson@netsweng.com>
In-reply-to: <20051103163306.GC3149@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <E1EXLJV-0005R4-K3@real.realitydiluted.com> <43695DB4.7060708@avtrex.com> <Pine.LNX.4.61.0511022000410.3511@trantor.stuart.netsweng.com> <436965B7.3000606@avtrex.com> <Pine.LNX.4.61.0511022057140.3511@trantor.stuart.netsweng.com> <20051103163306.GC3149@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.11
* Ralf Baechle <ralf@linux-mips.org> [2005-11-03 16:33]:
> > There was a comment on IRC that there was a register allocation issue which
> > lead to the current code. I'm not sure of the exact details, but I _think_
> > this change ends up being equivilent to the code it replaces.
> 
> It's correct - but triggers plenty of extra warnings and you forgot about
> get_user() which has the same kind of issue.  Also you don't have the
> guarantee that <linux/types.h> has been included, so in order to avoid a
> yet another header file dependency I changed s8, s16 etc. to char, short,
> int, long long.  Working on it but as usual uaccess.h is quite a quiz.

What's the status of this?

With current linux-mips git I still get the problem.  As a reminder,
the error is:

  CC      fs/compat_ioctl.o
fs/compat_ioctl.c: In function 'fd_ioctl_trans':
fs/compat_ioctl.c:1831: error: read-only variable '__gu_val' used as 'asm' 
output
fs/compat_ioctl.c:1831: error: read-only variable '__gu_val' used as 'asm' 
output
fs/compat_ioctl.c:1831: error: read-only variable '__gu_val' used as 'asm' 
output
fs/compat_ioctl.c:1831: error: read-only variable '__gu_val' used as 'asm' 
output
make[1]: *** [fs/compat_ioctl.o] Error 1

-- 
Martin Michlmayr
http://www.cyrius.com/

<Prev in Thread] Current Thread [Next in Thread>