linux-mips
[Top] [All Lists]

Re: [PATCH] Workaround for a sparse warning in include/asm-mips/io.h

To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Subject: Re: [PATCH] Workaround for a sparse warning in include/asm-mips/io.h
From: Ralf Baechle <ralf@linux-mips.org>
Date: Thu, 12 Jul 2007 14:19:21 +0100
Cc: macro@linux-mips.org, linux-mips@linux-mips.org
In-reply-to: <20070711.235420.18311683.anemo@mba.ocn.ne.jp>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20070711.231200.05599385.anemo@mba.ocn.ne.jp> <Pine.LNX.4.64N.0707111516250.26459@blysk.ds.pg.gda.pl> <20070711.235420.18311683.anemo@mba.ocn.ne.jp>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.14 (2007-02-12)
On Wed, Jul 11, 2007 at 11:54:20PM +0900, Atsushi Nemoto wrote:

> Yes, adding 'L' to KSEG1 is another way to silence the warnings.  But
> I just thought it was a bit intrusive.  And I'm not sure all code are
> OK if KSEG1 is 'signed' ...

The MIPS architecture's idea of the 32 and 64-bit address space is that
32-bit addresses can be sign-extended to 64-bit addresses.  This if of
course conflicting with the general Linux idea that virtual addresses are
represented as an unsigned long.

  Ralf

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