conflicting types for 'smp_send_reschedule'
From: Alan Kilian (kilian_at_raceme.UUCP)
Date: 10/14/04
- Next message: Kasper Dupont: "Re: Interrupts in user space?"
- Previous message: Måns Rullgård: "Re: Interrupts in user space?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 14 Oct 2004 19:57:49 GMT
I have just completed porting a Sun Solaris DDI device driver
to Linux, and it is working 100% correctly.
I have copied the source to another Linux machine, and I am
getting compile-time errors:
gcc -Wall -D__KERNEL__ -DMODULE -I/usr/src/linux-2.4/include -O -DLINUX \
-c -o main.o main.c
In file included from /usr/src/linux-2.4/include/linux/sched.h:23,
from /usr/src/linux-2.4/include/linux/mm.h:4,
from /usr/src/linux-2.4/include/linux/slab.h:14,
from main.c:28:
/usr/src/linux-2.4/include/linux/smp.h:29: error: conflicting types for
'smp_send_reschedule'
/usr/src/linux-2.4/include/asm/smp.h:65: error: previous declaration of
'smp_send_reschedule' was here
/usr/src/linux-2.4/include/linux/smp.h:29: error: conflicting types for
'smp_send_reschedule'
/usr/src/linux-2.4/include/asm/smp.h:65: error: previous declaration of
'smp_send_reschedule' was here
The machine I devleoped on was a Dell 4400 running:
% uname -a
Linux Dell4400 2.4.20-20.9 #1 Mon Aug 18 11:45:58 EDT 2003 i686 i686 i386
GNU/Linux
% gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit -
-host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
The machine I am getting errors on is of unkown manufacturer (and it's
1500 miles away from here)
[kilian@tux ~]$ uname -a
Linux tux 2.4.18-27.8.0smp #1 SMP Fri Mar 14 05:47:33 EST 2003 i686 i686 i386
GNU/Linux
[kilian@tux ~]$ gcc -v
Reading specs from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/specs
Configured with: ../gcc-3.4.2/configure
Thread model: posix
gcc version 3.4.2
Can anyone shed some light on why I'm getting this compiler error?
Thanks millions for the help.
-- - Alan Kilian <kilian(at)timelogic.com> Director of Bioinformatics, TimeLogic Corporation 763-449-7622
- Next message: Kasper Dupont: "Re: Interrupts in user space?"
- Previous message: Måns Rullgård: "Re: Interrupts in user space?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|