[Top] [All Lists]

Re: sparse and mips

To: Jeroen Vreeken <>
Subject: Re: sparse and mips
From: Ralf Baechle <>
Date: Thu, 3 Mar 2005 10:46:54 +0000
Cc: Geert Uytterhoeven <>, Linux/MIPS Development <>
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <>
User-agent: Mutt/1.4.1i
On Mon, Feb 28, 2005 at 03:00:44PM +0100, Jeroen Vreeken wrote:

> Adding the following few lines fixes the problems with the headers (they 
> are normally defined by gcc)...
> I am not sure that is all that is needed (the rest might just be me 
> doing bad things in my driver) but since they are mips specific I think 
> arch/mips/Makefile would be the right place for them:
> CHECKFLAGS    += -D__mips__
> ifdef CONFIG_MIPS32

I went for something slightly more beautyful:

CHECKFLAGS-y                            += -D__linux__ -D__mips__
CHECKFLAGS-$(CONFIG_MIPS32)             += -D_MIPS_SZLONG=32 \
CHECKFLAGS-$(CONFIG_MIPS64)             += -D_MIPS_SZLONG=64 \
                                           -D__PTRDIFF_TYPE__="long int"

Still needs a few more symbols I guess.  And I fixed a few of the worst
offenders, especially uaccess.h.


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