Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] Fix incorrent type of flags in <asm/semaphore.h>

I still think using BUILD_BUG_ON() is unacceptable, especially given how
vague the error message was.

Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
[ And I already removed gthe BUILD_BUG_ON() in the previous commit ]
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Kyle McMartin and committed by
Linus Torvalds
c9c3b86f b8e6ec86

+4 -2
+4 -2
include/asm-parisc/semaphore.h
··· 115 115 */ 116 116 extern __inline__ int down_trylock(struct semaphore * sem) 117 117 { 118 - int flags, count; 118 + unsigned long flags; 119 + int count; 119 120 120 121 spin_lock_irqsave(&sem->sentry, flags); 121 122 count = sem->count - 1; ··· 132 131 */ 133 132 extern __inline__ void up(struct semaphore * sem) 134 133 { 135 - int flags; 134 + unsigned long flags; 135 + 136 136 spin_lock_irqsave(&sem->sentry, flags); 137 137 if (sem->count < 0) { 138 138 __up(sem);