From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: linux-parisc@vger.kernel.org
Subject: [PATCH] PARISC: Replace deprecated SPIN_LOCK_UNLOCKED macro in semaphore.h.
Date: Sat, 15 Mar 2008 09:41:28 -0400 (EDT) [thread overview]
Message-ID: <alpine.LFD.1.00.0803150939590.22947@localhost.localdomain> (raw)
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
---
whoops, ignore that earlier patch. the actual standard is to
incorporate the structure member in the lock name, thusly:
diff --git a/include/asm-parisc/semaphore.h b/include/asm-parisc/semaphore.h
index a16271c..e4eba1e 100644
--- a/include/asm-parisc/semaphore.h
+++ b/include/asm-parisc/semaphore.h
@@ -44,7 +44,7 @@ struct semaphore {
#define __SEMAPHORE_INITIALIZER(name, n) \
{ \
- .sentry = SPIN_LOCK_UNLOCKED, \
+ .sentry = __SPIN_LOCK_UNLOCKED((name).sentry), \
.count = n, \
.wait = __WAIT_QUEUE_HEAD_INITIALIZER((name).wait) \
}
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.
http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================
next reply other threads:[~2008-03-15 13:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-15 13:41 Robert P. J. Day [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-03-15 13:31 [PATCH] PARISC: Replace deprecated SPIN_LOCK_UNLOCKED macro in semaphore.h Robert P. J. Day
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=alpine.LFD.1.00.0803150939590.22947@localhost.localdomain \
--to=rpjday@crashcourse.ca \
--cc=linux-parisc@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox