From: Alexey Dobriyan Just like everyone else. Signed-off-by: Alexey Dobriyan Cc: Matthew Wilcox Cc: Kyle McMartin Cc: Grant Grundler Signed-off-by: Andrew Morton --- include/asm-parisc/semaphore.h | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff -puN include/asm-parisc/semaphore.h~parisc-use-unsigned-long-flags-in-semaphore-code include/asm-parisc/semaphore.h --- a/include/asm-parisc/semaphore.h~parisc-use-unsigned-long-flags-in-semaphore-code +++ a/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); _