mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, xsonnek@gmail.com,
	Jiri Slaby <jirislaby@gmail.com>,
	Rusty Russell <rusty@rustcorp.com.au>
Subject: [PATCH 1/1] semaphore: declare down_try
Date: Wed, 30 Jul 2008 13:25:15 +0200	[thread overview]
Message-ID: <1217417115-28574-1-git-send-email-jirislaby@gmail.com> (raw)

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


             reply	other threads:[~2008-07-30 11:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-30 11:25 Jiri Slaby [this message]
2008-07-30 11:27 ` Jiri Slaby
2008-07-30 16:48   ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1217417115-28574-1-git-send-email-jirislaby@gmail.com \
    --to=jirislaby@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    --cc=xsonnek@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome