From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmOGk-0008Sp-K9 for qemu-devel@nongnu.org; Wed, 14 Oct 2015 11:47:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZmOGY-0000GK-BC for qemu-devel@nongnu.org; Wed, 14 Oct 2015 11:47:03 -0400 Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]:33123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmOGX-0000ES-Q8 for qemu-devel@nongnu.org; Wed, 14 Oct 2015 11:46:58 -0400 Received: by lffv3 with SMTP id v3so14641436lff.0 for ; Wed, 14 Oct 2015 08:46:56 -0700 (PDT) From: Sergey Fedorov Date: Wed, 14 Oct 2015 18:46:44 +0300 Message-Id: <1444837604-13712-1-git-send-email-serge.fdrv@gmail.com> Subject: [Qemu-devel] [PATCH] doc/rcu: fix g_free_rcu() usage example List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Sergey Fedorov , Fam Zheng , Paolo Bonzini The first argument of g_free_rcu() is a pointer to a structure. But foo_reclaim is used as a function name in the previous example along with &foo as a pointer to the structure being reclaimed. Make the example consistent with the previous one. Signed-off-by: Sergey Fedorov --- docs/rcu.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rcu.txt b/docs/rcu.txt index 21ecb81..2f70954 100644 --- a/docs/rcu.txt +++ b/docs/rcu.txt @@ -128,7 +128,7 @@ The core RCU API is small: the callback function is g_free, in particular, g_free_rcu can be used. In the above case, one could have written simply: - g_free_rcu(foo_reclaim, rcu); + g_free_rcu(&foo, rcu); typeof(*p) atomic_rcu_read(p); -- 1.9.1