Skip to contentSkip to conversation

ia64: typo fix of implement interrupt-enabling rwlocks

PATCH New KOSAKI Motohiro 1 participant 1 message Dec 16, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ia64: typo fix of implement interrupt-enabling rwlocks

Applied after: ia64-implement-interrupt-enabling-rwlocks.patch
=
Recently, __raw_read_lock_flags and __raw_write_lock_flags for ia64 was implemented.

But its patch has typo. then following warnings happend.

CC lib/spinlock_debug.o
lib/spinlock_debug.c: In function '_raw_read_lock':
lib/spinlock_debug.c:199: warning: passing argument 1 of '__raw_read_lock_flags' from incompatible pointer type lib/spinlock_debug.c: In function '_raw_write_lock':
lib/spinlock_debug.c:274: warning: passing argument 1 of '__raw_write_lock_flags' from incompatible pointer type

CC Petr Tesarik <[email protected]>
CC Robin Holt <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc "Luck, Tony" <[email protected]>
---
 arch/ia64/include/asm/spinlock.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: b/arch/ia64/include/asm/spinlock.h =================================--- a/arch/ia64/include/asm/spinlock.h +++ b/arch/ia64/include/asm/spinlock.h
@@ -123,7 +123,7 @@ do { \
#ifdef ASM_SUPPORTED

static __always_inline void
-__raw_read_lock_flags(raw_spinlock_t *lock, unsigned long flags) +__raw_read_lock_flags(raw_rwlock_t *lock, unsigned long flags)
{
__asm__ __volatile__ (
"tbit.nz p6, p0 = %1,%2\n"
@@ -174,7 +174,7 @@ do { \
#ifdef ASM_SUPPORTED

static __always_inline void
-__raw_write_lock_flags(raw_spinlock_t *lock, unsigned long flags) +__raw_write_lock_flags(raw_rwlock_t *lock, unsigned long flags)
{
__asm__ __volatile__ (
"tbit.nz p6, p0 = %1, %2\n"