Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752027AbcJAUFU (ORCPT ); Sat, 1 Oct 2016 16:05:20 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:14252 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751888AbcJAUFO (ORCPT ); Sat, 1 Oct 2016 16:05:14 -0400 X-IronPort-AV: E=Sophos;i="5.31,428,1473112800"; d="scan'208";a="195304902" From: Julia Lawall To: Philipp Reisner Cc: kernel-janitors@vger.kernel.org, Lars Ellenberg , drbd-dev@lists.linbit.com, linux-kernel@vger.kernel.org Subject: [PATCH 04/15] lru_cache: improve function-level documentation Date: Sat, 1 Oct 2016 21:46:21 +0200 Message-Id: <1475351192-27079-5-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1475351192-27079-1-git-send-email-Julia.Lawall@lip6.fr> References: <1475351192-27079-1-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1005 Lines: 27 Use the actual function name and reorder the listed variables to correspond to their order in the function parameter list. Issue detected using Coccinelle (http://coccinelle.lip6.fr/) Signed-off-by: Julia Lawall --- lib/lru_cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lru_cache.c b/lib/lru_cache.c index 28ba40b..07d3507 100644 --- a/lib/lru_cache.c +++ b/lib/lru_cache.c @@ -639,9 +639,9 @@ void lc_set(struct lru_cache *lc, unsigned int enr, int index) } /** - * lc_dump - Dump a complete LRU cache to seq in textual form. - * @lc: the lru cache to operate on + * lc_seq_dump_details - Dump a complete LRU cache to seq in textual form. * @seq: the &struct seq_file pointer to seq_printf into + * @lc: the lru cache to operate on * @utext: user supplied additional "heading" or other info * @detail: function pointer the user may provide to dump further details * of the object the lc_element is embedded in. May be NULL.