All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20050120164741.GA16660@elte.hu>

diff --git a/a/1.txt b/N1/1.txt
index a9b30a7..760e7e0 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -35,7 +35,7 @@ Signed-off-by: Ingo Molnar <mingo@elte.hu>
 + */
 +static inline int write_can_lock(rwlock_t *rw)
 +{
-+	return *(volatile int *)rw = 0;
++	return *(volatile int *)rw == 0;
 +}
 + 
 + /*
diff --git a/a/content_digest b/N1/content_digest
index 8d57467..4e9e289 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -10,7 +10,7 @@
  "ref\0Pine.LNX.4.58.0501200823010.8178@ppc970.osdl.org\0"
  "From\0Ingo Molnar <mingo@elte.hu>\0"
  "Subject\0Re: [patch 1/3] spinlock fix #1, *_can_lock() primitives\0"
- "Date\0Thu, 20 Jan 2005 16:47:41 +0000\0"
+ "Date\0Thu, 20 Jan 2005 17:47:41 +0100\0"
  "To\0Linus Torvalds <torvalds@osdl.org>\0"
  "Cc\0Peter Chubb <peterc@gelato.unsw.edu.au>"
   Chris Wedgwood <cw@f00f.org>
@@ -63,7 +63,7 @@
  "+ */\n"
  "+static inline int write_can_lock(rwlock_t *rw)\n"
  "+{\n"
- "+\treturn *(volatile int *)rw = 0;\n"
+ "+\treturn *(volatile int *)rw == 0;\n"
  "+}\n"
  "+ \n"
  "+ /*\n"
@@ -72,4 +72,4 @@
  " do {\t\t\t\t\t\t\t\t\t\t\t\\\n"
  " \trwlock_t *__read_lock_ptr = (rw);\t\t\t\t\t\t\\"
 
-5bd3524469d134c92695a9caeadb9fce9333ebb9ff0cf02fd6998250a5ba025c
+42b27406b691ab25f95ebbdb342f3f78536133733c06f321fad6568bca431958

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.