All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Breuer <breuerr@mc.net>
To: sparclinux@vger.kernel.org
Subject: [PATCH 3/4] sparc32: add missing rw can_lock macros
Date: Sun, 11 Jun 2006 06:19:22 +0000	[thread overview]
Message-ID: <448BB5EA.2060200@mc.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 124 bytes --]

Fix a link failure by adding the missing can_lock macros for the rw locks.

Signed-off-by: Bob Breuer <breuerr@mc.net>
---


[-- Attachment #2: sparc32-rw_can_lock.patch.txt --]
[-- Type: text/plain, Size: 544 bytes --]

--- linux-2.6.17-rc5-clean/include/asm-sparc/spinlock.h	2006-04-30 14:18:19.000000000 -0500
+++ linux-2.6.17-rc5/include/asm-sparc/spinlock.h	2006-06-01 00:47:28.000000000 -0500
@@ -154,6 +154,9 @@ static inline int __raw_write_trylock(ra
 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock)
 #define __raw_read_trylock(lock) generic__raw_read_trylock(lock)
 
+#define __raw_read_can_lock(rw) (!((rw)->lock & 0xff))
+#define __raw_write_can_lock(rw) (!(rw)->lock)
+
 #endif /* !(__ASSEMBLY__) */
 
 #endif /* __SPARC_SPINLOCK_H */

             reply	other threads:[~2006-06-11  6:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-11  6:19 Bob Breuer [this message]
2006-06-20  7:35 ` [PATCH 3/4] sparc32: add missing rw can_lock macros David Miller

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=448BB5EA.2060200@mc.net \
    --to=breuerr@mc.net \
    --cc=sparclinux@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.