Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp331433pxj; Tue, 1 Jun 2021 23:45:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9nkXg2xEKLTnQPtEoBxA8kwXHnybUqzsIHvJY14Zy3BblM1DpHRsQM5C8GteXKqNBohb2 X-Received: by 2002:a02:9107:: with SMTP id a7mr28970624jag.36.1622616329787; Tue, 01 Jun 2021 23:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622616329; cv=none; d=google.com; s=arc-20160816; b=tjC6hi37KtzwKweYGWSzCxVODZZ+OCjap/Cwc4p8auMZoh62Bk/3riKPp2cgOmEn+X dTRPrkcitU2eTKRqSvnNBssOC6GdZul3uQOtHUaMTP8HYsHwkEFC9pqgugLH+hb/PBMk xJgHYl/XAZTrBOWVBICbvu6H0ezb8Ou4eyE5lYuRSdXfFvJRNMSGerVtXN094ElpT27W gfdxHaVM3fw5S08MAUcHAdgU8JDq7rRo7kM1kuDzuRFpK1EHQxSo2NTOYu1rMjrETxti ZpxXNgDLrC1aEAqfPfOWr1kHTEPQeOk4RQt6AkC/W7n/emndoicmUbhLf/DBF6F4QsnX vI+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=r9y2MIYHC1ZVT120C073M6ZnWMYa9AIdCVt6UqfKA4I=; b=wXC02sLJJaytZb+slLHI345prf2iYNnJJjgSJC1X17vm6YIy6LiqzunRd+pspyyyFf GQp1FgN/dZlG60oSW3FqvQzF9KZZjPVbmMWWqWpCUQJYXnQKK/9EK7uzezH5WxvUAi2R b2MopXm76dgK7jwAlxpcWF91GvbgFOqFvv+ZAi9B6/cKlE+UceMKPeivswARLeLyZFuV GWG3ndYNf2CHMgoQKvrRvhovsbY1H5IN3q+G86Ij2JsuMKo7l496axRSgESIr5xIwsBt 5EKE/c18iJrFXsp+pf2xhR6hpM14JzUtIsWJ8tEHoIs8VwEenoHahjbdpfNYOru+pW42 iKFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=VppKp40X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c22si19661833ioo.82.2021.06.01.23.45.16; Tue, 01 Jun 2021 23:45:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=VppKp40X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231359AbhFBG1a (ORCPT + 99 others); Wed, 2 Jun 2021 02:27:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231342AbhFBG11 (ORCPT ); Wed, 2 Jun 2021 02:27:27 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1908FC06175F for ; Tue, 1 Jun 2021 23:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=r9y2MIYHC1ZVT120C073M6ZnWMYa9AIdCVt6UqfKA4I=; b=VppKp40XA12T1ZYkMvv9l83acr j0azsJaviVPYS5KWfR/jHnuTSePSjdQ+9/YqV479R7DMWswQ7+vT38oNlePLOGu6CULPH5L7KCxUx 9H99QPeNPiFpJ1/HUS5FMbHmelXHRPZnmv9TAcFJ2RsfdDfarY/h6oPPJ4r7Z2CD517xzKRGSOsvw WrmBmvnaLdsz8lPAwb958ZA4sQB00PJ3cd34t2sZ803/cPqHNGmOkFk6ND1vxqnq0DHYaMMQK/74R guFqJViXFpM2fXYYHxsrPy4kETbISk1xlbeAwHOPaK4KPRyCPeVfeyx9ooe+cdy4XP3F9Hrk7Usw9 3cx9+CNA==; Received: from [2601:1c0:6280:3f0::ce7d] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1loKJy-0021P0-Ru; Wed, 02 Jun 2021 06:25:42 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Peter Zijlstra , Matthew Wilcox , Michel Lespinasse , Davidlohr Bueso Subject: [PATCH] rbtree: repair some kernel-doc whining Date: Tue, 1 Jun 2021 23:25:42 -0700 Message-Id: <20210602062542.8188-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Clean up some kernel-doc warnings and use the documented Return: notation for function return values. rbtree_latch.h:64: warning: cannot understand function prototype: 'struct latch_ tree_ops ' rbtree.h:343: warning: Function parameter or member 'node' not described in 'rb_ next_match' rbtree.h:343: warning: Excess function parameter 'tree' description in 'rb_next_ match' Signed-off-by: Randy Dunlap Cc: Peter Zijlstra Cc: Matthew Wilcox Cc: Michel Lespinasse Cc: Davidlohr Bueso --- include/linux/rbtree.h | 14 +++++++------- include/linux/rbtree_latch.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) --- linux-next-20210601.orig/include/linux/rbtree_latch.h +++ linux-next-20210601/include/linux/rbtree_latch.h @@ -47,7 +47,7 @@ struct latch_tree_root { }; /** - * latch_tree_ops - operators to define the tree order + * struct latch_tree_ops - operators to define the tree order * @less: used for insertion; provides the (partial) order between two elements. * @comp: used for lookups; provides the order between the search key and an element. * --- linux-next-20210601.orig/include/linux/rbtree.h +++ linux-next-20210601/include/linux/rbtree.h @@ -186,7 +186,7 @@ static inline void rb_replace_node_cache * @tree: leftmost cached tree to insert @node into * @less: operator defining the (partial) node order * - * Returns @node when it is the new leftmost, or NULL. + * Return: @node when it is the new leftmost, or %NULL. */ static __always_inline struct rb_node * rb_add_cached(struct rb_node *node, struct rb_root_cached *tree, @@ -243,7 +243,7 @@ rb_add(struct rb_node *node, struct rb_r * @tree: tree to search / modify * @cmp: operator defining the node order * - * Returns the rb_node matching @node, or NULL when no match is found and @node + * Return: the rb_node matching @node, or %NULL when no match is found and @node * is inserted. */ static __always_inline struct rb_node * @@ -277,7 +277,7 @@ rb_find_add(struct rb_node *node, struct * @tree: tree to search * @cmp: operator defining the node order * - * Returns the rb_node matching @key or NULL. + * Return: the rb_node matching @key or %NULL. */ static __always_inline struct rb_node * rb_find(const void *key, const struct rb_root *tree, @@ -305,7 +305,7 @@ rb_find(const void *key, const struct rb * @tree: tree to search * @cmp: operator defining node order * - * Returns the leftmost node matching @key, or NULL. + * Return: the leftmost node matching @key, or %NULL. */ static __always_inline struct rb_node * rb_find_first(const void *key, const struct rb_root *tree, @@ -330,12 +330,12 @@ rb_find_first(const void *key, const str } /** - * rb_next_match() - find the next @key in @tree + * rb_next_match() - find the next @key in tree * @key: key to match - * @tree: tree to search + * @node: where the previous match was found, then continue searching from here * @cmp: operator defining node order * - * Returns the next node matching @key, or NULL. + * Return: the next node matching @key, or %NULL. */ static __always_inline struct rb_node * rb_next_match(const void *key, struct rb_node *node,