Skip to contentSkip to conversation

xtensa must set RWSEM_GENERIC_SPINLOCK=y

PATCH New Adrian Bunk 1 participant 1 message Mar 3, 2006 Tensilica Xtensa port (xtensa)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xtensa must set RWSEM_GENERIC_SPINLOCK=y

This untested patch should fix the following compile error:

<-- snip -->

...
CC mm/rmap.o
/usr/src/ctest/git/kernel/mm/rmap.c: In function `page_referenced_one':
/usr/src/ctest/git/kernel/mm/rmap.c:354: warning: implicit declaration of function `rwsem_is_locked'
...
LD .tmp_vmlinux1
mm/built-in.o:(.text+0x5a0): undefined reference to `rwsem_is_locked'
make[1]: *** [.tmp_vmlinux1] Error 1

<-- snip -->

arch/xtensa/Kconfig renamed from arch/xtensa/Kconfig.old +4 -0
@@ -34,6 +34,10 @@
 	bool
 	default y
 
+config RWSEM_GENERIC_SPINLOCK
+       bool
+       default y
+
 source "init/Kconfig"
 
 menu "Processor type and features"