linux-mips
[Top] [All Lists]

Re: xtime declaration

To: linux-mips@oss.sgi.com
Subject: Re: xtime declaration
From: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>
Date: Fri, 3 Aug 2001 11:59:35 +0200
In-reply-to: <20010803024501.A27708@bacchus.dhis.org>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.3.18i
Ralf Baechle wrote:
[snip]
> > timer.c:35: conflicting types for `xtime'
> > /local/chua/public/linux-mips-latest/include/linux/sched.h:540: previous
> > declaration of `xtime'
> > 
> > in include/linux/sched.h:
> > extern struct timeval xtime;
> > 
> > int timer.c:
> > volatile struct timeval xtime __attribute__ ((aligned (16)));
> > 
> > I am using gcc 3.0 and binutils 2.11.2, both of the released versions.
> > I do not know if my kernel actually runs yet with this toolchain...
> 
> That's a bug which got fixed in the latest kernels by removing the
> volatile from the sched.h declaration.

And since timer.c kept the volatile definition, it does not compile
now. The volatile should either be removed in timer.c or added in
sched.h, I don't know what is right.


Thiemo

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