]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-parisc/semaphore.h
[NET] Cleanup: DIV_ROUND_UP
[linux-2.6-omap-h63xx.git] / include / asm-parisc / semaphore.h
index c9ee41cd0707948d9b031cbb2587f39b0d2ba973..d45827a21f943d07cb36153dd2906d937e016fb8 100644 (file)
@@ -115,7 +115,8 @@ extern __inline__ int down_interruptible(struct semaphore * sem)
  */
 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,8 @@ extern __inline__ int down_trylock(struct semaphore * sem)
  */
 extern __inline__ void up(struct semaphore * sem)
 {
-       int flags;
+       unsigned long flags;
+
        spin_lock_irqsave(&sem->sentry, flags);
        if (sem->count < 0) {
                __up(sem);