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@xxxxxxxxx> list_add() lost a parameter in sample code. Signed-off-by: Figo.zhang <figo1802@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- 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@xxxxxxxxx are documentation-atomic_opstxt-fix-sample-code.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html