public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] semaphore: declare down_try
@ 2008-07-30 11:25 Jiri Slaby
  2008-07-30 11:27 ` Jiri Slaby
  0 siblings, 1 reply; 3+ messages in thread
From: Jiri Slaby @ 2008-07-30 11:25 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, xsonnek, Jiri Slaby, Rusty Russell

Maybe you already fixed this, in todays mmotm there is a fix of duplicate
down_try definiton, but this problem still persist.
--

down_trylock is superseded by down_try, but prototypes in header
files remained unchanged.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
---
 include/linux/semaphore.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/semaphore.h b/include/linux/semaphore.h
index 7415839..ca153ec 100644
--- a/include/linux/semaphore.h
+++ b/include/linux/semaphore.h
@@ -42,7 +42,7 @@ static inline void sema_init(struct semaphore *sem, int val)
 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);
 
-- 
1.5.6.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] semaphore: declare down_try
  2008-07-30 11:25 [PATCH 1/1] semaphore: declare down_try Jiri Slaby
@ 2008-07-30 11:27 ` Jiri Slaby
  2008-07-30 16:48   ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Jiri Slaby @ 2008-07-30 11:27 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, xsonnek, Rusty Russell

Jiri Slaby napsal(a):
> Maybe you already fixed this, in todays mmotm there is a fix of duplicate
> down_try definiton, but this problem still persist.

BTW. there is still bunch of down_trylock(); users, are you about to 
eliminate them?

    2    182  /home/latest/xxx/drivers/watchdog/ar7_wdt.c <<ar7_wdt_open>>
              if (down_trylock(&open_semaphore))
    3    309  /home/latest/xxx/drivers/watchdog/it8712f_wdt.c
              <<it8712f_wdt_open>>
              if (down_trylock(&it8712f_wdt_sem))
    4    214  /home/latest/xxx/drivers/watchdog/s3c2410_wdt.c
              <<s3c2410wdt_open>>
              if(down_trylock(&open_lock))
    5    154  /home/latest/xxx/drivers/watchdog/sc1200wdt.c <<sc1200wdt_open>>
              if (down_trylock(&open_sem))
    6     95  /home/latest/xxx/drivers/watchdog/scx200_wdt.c <<scx200_wdt_open>>
              if (down_trylock(&open_semaphore))
    7    429  /home/latest/xxx/drivers/watchdog/wdt_pci.c <<wdtpci_open>>
              if (down_trylock(&open_sem))

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] semaphore: declare down_try
  2008-07-30 11:27 ` Jiri Slaby
@ 2008-07-30 16:48   ` Andrew Morton
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2008-07-30 16:48 UTC (permalink / raw)
  To: Jiri Slaby; +Cc: linux-kernel, xsonnek, Rusty Russell

On Wed, 30 Jul 2008 13:27:36 +0200 Jiri Slaby <jirislaby@gmail.com> wrote:

> Jiri Slaby napsal(a):
> > Maybe you already fixed this, in todays mmotm there is a fix of duplicate
> > down_try definiton, but this problem still persist.
> 
> BTW. there is still bunch of down_trylock(); users, are you about to 
> eliminate them?
> 
>     2    182  /home/latest/xxx/drivers/watchdog/ar7_wdt.c <<ar7_wdt_open>>
>               if (down_trylock(&open_semaphore))
>     3    309  /home/latest/xxx/drivers/watchdog/it8712f_wdt.c
>               <<it8712f_wdt_open>>
>               if (down_trylock(&it8712f_wdt_sem))
>     4    214  /home/latest/xxx/drivers/watchdog/s3c2410_wdt.c
>               <<s3c2410wdt_open>>
>               if(down_trylock(&open_lock))
>     5    154  /home/latest/xxx/drivers/watchdog/sc1200wdt.c <<sc1200wdt_open>>
>               if (down_trylock(&open_sem))
>     6     95  /home/latest/xxx/drivers/watchdog/scx200_wdt.c <<scx200_wdt_open>>
>               if (down_trylock(&open_semaphore))
>     7    429  /home/latest/xxx/drivers/watchdog/wdt_pci.c <<wdtpci_open>>
>               if (down_trylock(&open_sem))

oh crap, yes, sorry, I had a bit of a catastrophe with two different
versions of the sameish thing coming from two directions and my
approach to fixing that was to drop one patch and to await the next
linux-next pull for the other.  Forgot.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-07-30 16:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-30 11:25 [PATCH 1/1] semaphore: declare down_try Jiri Slaby
2008-07-30 11:27 ` Jiri Slaby
2008-07-30 16:48   ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox