[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20061020125722.GA17199@martell.zuzino.mipt.ru>
Date: Fri, 20 Oct 2006 16:57:22 +0400
From: Alexey Dobriyan <adobriyan@...il.com>
To: Andrew Morton <akpm@...l.org>
Cc: linux-kernel@...r.kernel.org, parisc-linux@...isc-linux.org
Subject: [PATCH 1/3] parisc: use "unsigned long flags" in semaphore code
Just like everyone else.
Signed-off-by: Alexey Dobriyan <adobriyan@...il.com>
---
include/asm-parisc/semaphore.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- a/include/asm-parisc/semaphore.h
+++ b/include/asm-parisc/semaphore.h
@@ -115,7 +115,8 @@ extern __inline__ int down_interruptible
*/
extern __inline__ int down_trylock(struct semaphore * sem)
{
- int flags, count;
+ unsigned long flags;
+ int count;
spin_lock_irqsave(&sem->sentry, flags);
count = sem->count - 1;
@@ -131,7 +132,7 @@ extern __inline__ int down_trylock(struc
*/
extern __inline__ void up(struct semaphore * sem)
{
- int flags;
+ unsigned long flags;
spin_lock_irqsave(&sem->sentry, flags);
if (sem->count < 0) {
__up(sem);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists