Skip to contentSkip to conversation

add prototype for down_try() to semaphore.h

PATCH New Lee Schermerhorn 1 participant 1 message Jul 30, 2008 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add prototype for down_try() to semaphore.h

I have needed this patch against the 29jul and 30jul mmotm to build.

Against: mmotm 080730-0356

Fix to patch linux-next.patch
Required to build.

 include/linux/semaphore.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/semaphore.h +1 -1
Index: linux-2.6.26/include/linux/semaphore.h
===================================================================
@@ -42,7 +42,7 @@ static inline void sema_init(struct sema
 extern void down(struct semaphore *sem);
 extern int __must_check down_interruptible(struct semaphore *sem);
 extern int __must_check down_killable(struct semaphore *sem);
-extern int __must_check down_trylock(struct semaphore *sem);
+extern int __must_check down_try(struct semaphore *sem);
 extern int __must_check down_timeout(struct semaphore *sem, long jiffies);
 extern void up(struct semaphore *sem);
 

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>