xtime declaration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Has anyone else come across a compile error:

mips-linux-gcc -I /local/chua/public/linux-mips-latest/include/asm/gcc
-D__KERNEL__ -I/local/chua/public/linux-mips-latest/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -G 0
-mno-abicalls -fno-pic -mcpu=r5000 -mips2 -Wa,--trap -pipe    -c -o
timer.o timer.c
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...

-- bryan



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux