[2.3.99-pre1]: spinlock.h conflicts

From: Jean-Luc Pedneault (umaro@step.polymtl.ca)
Date: Wed Mar 15 2000 - 02:42:56 EST


DRI compiled correctly in every previous version.

It seems both spinlock.h can be included, because
linux/include/linux/spinlock.h has these lines:

#ifdef __SMP__
#include <asm/spinlock.h>
#else /* !SMP */
[...]

But my box isn't SMP, and I haven't configured linux to compile with SMP
support. I haven't investigated much so the problem can be elsewhere.

---<snip>---
gcc -D__KERNEL__ -I/usr/src/linux-2.3/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -pipe -DCPU=586 -fno-strict-aliasing -c -o
init.o init.c
In file included from drmP.h:53,
                 from init.c:32:
/usr/src/linux-2.3/include/asm/spinlock.h:36: warning: `SPIN_LOCK_UNLOCKED'
redefined
/usr/src/linux-2.3/include/linux/spinlock.h:51: warning: this is the
location of the previous definition
/usr/src/linux-2.3/include/asm/spinlock.h:38: warning: `spin_lock_init'
redefined
/usr/src/linux-2.3/include/linux/spinlock.h:54: warning: this is the
location of the previous definition
/usr/src/linux-2.3/include/asm/spinlock.h:46: warning: `spin_unlock_wait'
redefined
/usr/src/linux-2.3/include/linux/spinlock.h:58: warning: this is the
location of the previous definition
/usr/src/linux-2.3/include/asm/spinlock.h:47: warning: `spin_is_locked'
redefined
/usr/src/linux-2.3/include/linux/spinlock.h:56: warning: this is the
location of the previous definition
/usr/src/linux-2.3/include/asm/spinlock.h:101: warning: `spin_trylock'
redefined/usr/src/linux-2.3/include/linux/spinlock.h:57: warning: this is
the location of the previous definition
/usr/src/linux-2.3/include/asm/spinlock.h:128: warning: `RW_LOCK_UNLOCKED'
redefined
/usr/src/linux-2.3/include/linux/spinlock.h:114: warning: this is the
location of the previous definition
/usr/src/linux-2.3/include/asm/spinlock.h:159: warning: `read_unlock'
redefined
/usr/src/linux-2.3/include/linux/spinlock.h:118: warning: this is the
location of the previous definition
/usr/src/linux-2.3/include/asm/spinlock.h:160: warning: `write_unlock'
redefined/usr/src/linux-2.3/include/linux/spinlock.h:120: warning: this is
the location of the previous definition
In file included from drmP.h:53,
                 from init.c:32:
/usr/src/linux-2.3/include/asm/spinlock.h:26: conflicting types for
`spinlock_t'/usr/src/linux-2.3/include/linux/spinlock.h:50: previous
declaration of `spinlock_t'
/usr/src/linux-2.3/include/asm/spinlock.h:73: parse error before `void'
/usr/src/linux-2.3/include/asm/spinlock.h:88: parse error before `do'
/usr/src/linux-2.3/include/asm/spinlock.h:118: conflicting types for
`rwlock_t'
/usr/src/linux-2.3/include/linux/spinlock.h:113: previous declaration of
`rwlock_t'
/usr/src/linux-2.3/include/asm/spinlock.h:141: parse error before `void'
/usr/src/linux-2.3/include/asm/spinlock.h:150: parse error before `void'
make[4]: *** [init.o] Error 1
make[4]: Leaving directory `/usr/src/linux-2.3/drivers/char/drm'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/usr/src/linux-2.3/drivers/char/drm'
make[2]: *** [_subdir_drm] Error 2
make[2]: Leaving directory `/usr/src/linux-2.3/drivers/char'
make[1]: *** [_subdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux-2.3/drivers'
make: *** [_dir_drivers] Error 2
---<snip>---

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:29 EST