* + documentation-atomic_opstxt-fix-sample-code.patch added to -mm tree
@ 2009-06-02 4:19 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2009-06-02 4:19 UTC (permalink / raw)
To: mm-commits; +Cc: figo1802
The patch titled
Documentation/atomic_ops.txt: fix sample code
has been added to the -mm tree. Its filename is
documentation-atomic_opstxt-fix-sample-code.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: Documentation/atomic_ops.txt: fix sample code
From: "Figo.zhang" <figo1802@gmail.com>
list_add() lost a parameter in sample code.
Signed-off-by: Figo.zhang <figo1802@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
Documentation/atomic_ops.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -puN Documentation/atomic_ops.txt~documentation-atomic_opstxt-fix-sample-code Documentation/atomic_ops.txt
--- a/Documentation/atomic_ops.txt~documentation-atomic_opstxt-fix-sample-code
+++ a/Documentation/atomic_ops.txt
@@ -229,10 +229,10 @@ kernel. It is the use of atomic counter
counting, and it works such that once the counter falls to zero it can
be guaranteed that no other entity can be accessing the object:
-static void obj_list_add(struct obj *obj)
+static void obj_list_add(struct obj *obj, struct list_head *head)
{
obj->active = 1;
- list_add(&obj->list);
+ list_add(&obj->list, head);
}
static void obj_list_del(struct obj *obj)
_
Patches currently in -mm which might be from figo1802@gmail.com are
documentation-atomic_opstxt-fix-sample-code.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-02 4:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-02 4:19 + documentation-atomic_opstxt-fix-sample-code.patch added to -mm tree akpm
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.