Re: kernel-2.6.15-rc5-rt2 - compilation error?RWSEM_ACTIVE_BIAS? undeclared

From: Steven Rostedt
Date: Wed Dec 14 2005 - 15:22:13 EST


On Wed, 2005-12-14 at 11:57 -0600, art wrote:
> kernel-2.6.15-rc5-rt2 - compilation error ʽRWSEM_ACTIVE_BIASʼ undeclared
>
> gcc version 4.0.2
> ........
> CC lib/kref.o
> CC lib/prio_tree.o
> CC lib/radix-tree.o
> CC lib/rbtree.o
> CC lib/rwsem.o
> lib/rwsem.c: In function ʽ__rwsem_do_wakeʼ:
> lib/rwsem.c:57: warning: implicit declaration of function ʽrwsem_atomic_updateʼ
> lib/rwsem.c:57: error: ʽRWSEM_ACTIVE_BIASʼ undeclared (first use in this function)

Art,

Use this patch.

Ingo,

Could you please apply this.

-- Steve


Index: linux-2.6.15-rc5-rt2/arch/i386/Kconfig
===================================================================
--- linux-2.6.15-rc5-rt2.orig/arch/i386/Kconfig 2005-12-14 14:37:01.000000000 -0500
+++ linux-2.6.15-rc5-rt2/arch/i386/Kconfig 2005-12-14 15:19:53.000000000 -0500
@@ -245,8 +245,7 @@

config RWSEM_XCHGADD_ALGORITHM
bool
- depends on !RWSEM_GENERIC_SPINLOCK && !PREEMPT_RT
- default y
+ default y if !RWSEM_GENERIC_SPINLOCK

config X86_UP_APIC
bool "Local APIC support on uniprocessors"
Index: linux-2.6.15-rc5-rt2/arch/i386/Kconfig.cpu
===================================================================
--- linux-2.6.15-rc5-rt2.orig/arch/i386/Kconfig.cpu 2005-12-14 14:36:56.000000000 -0500
+++ linux-2.6.15-rc5-rt2/arch/i386/Kconfig.cpu 2005-12-14 15:19:53.000000000 -0500
@@ -229,11 +229,6 @@
depends on M386
default y

-config RWSEM_XCHGADD_ALGORITHM
- bool
- depends on !M386
- default y
-
config GENERIC_CALIBRATE_DELAY
bool
default y


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