From: "Mark A. Greer" <mgreer@mvista•com>
To: akpm <akpm@osdl•org>
Cc: Linux/PPC Development <linuxppc-dev@ozlabs•org>
Subject: [PATCH][PPC32] include/asm-ppc/rwsem.h RWSEM_DEBUG usage
Date: Tue, 01 Feb 2005 16:53:21 -0700 [thread overview]
Message-ID: <42001671.1040200@mvista.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 292 bytes --]
include/asm-ppc/rwsem.h has '#ifdef RWSEM_DEBUG' but RWSEM_DEBUG is
always defined (as 0) in include/linux/rwsem.h. The #ifdef's should be
#if's. This also brings the ppc usage in line with the the other
architectures.
Please apply.
Signed-off-by: Mark A. Greer <mgreer@mvista•com>
--
[-- Attachment #2: rwsem.patch --]
[-- Type: text/plain, Size: 740 bytes --]
diff -Nru a/include/asm-ppc/rwsem.h b/include/asm-ppc/rwsem.h
--- a/include/asm-ppc/rwsem.h 2005-02-01 16:46:53 -07:00
+++ b/include/asm-ppc/rwsem.h 2005-02-01 16:46:53 -07:00
@@ -27,7 +27,7 @@
#define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
spinlock_t wait_lock;
struct list_head wait_list;
-#ifdef RWSEM_DEBUG
+#if RWSEM_DEBUG
int debug;
#endif
};
@@ -35,7 +35,7 @@
/*
* initialisation
*/
-#ifdef RWSEM_DEBUG
+#if RWSEM_DEBUG
#define __RWSEM_DEBUG_INIT , 0
#else
#define __RWSEM_DEBUG_INIT /* */
@@ -59,7 +59,7 @@
sem->count = RWSEM_UNLOCKED_VALUE;
spin_lock_init(&sem->wait_lock);
INIT_LIST_HEAD(&sem->wait_list);
-#ifdef RWSEM_DEBUG
+#if RWSEM_DEBUG
sem->debug = 0;
#endif
}
reply other threads:[~2005-02-01 23:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=42001671.1040200@mvista.com \
--to=mgreer@mvista$(echo .)com \
--cc=akpm@osdl$(echo .)org \
--cc=linuxppc-dev@ozlabs$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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