Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4795110rdb; Tue, 12 Dec 2023 09:27:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6g4u1hN0ruajaNS3txHCobvOlXg0ZHJfoe2FnfXS3H9HRdKKn6T7Uj/53o3EHTWlSdl76 X-Received: by 2002:a17:902:704c:b0:1d0:ab0e:9157 with SMTP id h12-20020a170902704c00b001d0ab0e9157mr3521233plt.128.1702402066155; Tue, 12 Dec 2023 09:27:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702402066; cv=none; d=google.com; s=arc-20160816; b=aoK4PS3PjkUV3KBFBfXFoTuzguvrjgi8Cljwbw7OeXTSmY7j3Uz1J4Y5+UXL1sEsVy sdHTsPAFzX9Lf+lzoidK4266WlmuCcWYumFf8jWObpN4s7IpaH6idis0zPw8PGVTyjtd W0alDrHOBmtHh8Sd3QK0sEhHhsBHvYixZqAlDp7uxai4bnpzFsxYl9Te1xOtXrDovdgd sS1BBmCZFG6PykUMF2yLQuERJL8c6WM1fpwX/MhGrFJi6tIhZenOIeL5mYF6/1eJrnbq Wr4vmsYwmnvujGk295HOKGC2dagdpuVDPJU8Ryp+anP8o1fDJ/qKK0Dbge/JFo5joJaw 8nnA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pAz4ODF6UTOOaFnSikdhsc6gxYzI76HyzuBIuPlXUuY=; fh=mM8e/cQcsvCW8Yi1UXQ4HrTkILctgxcyvS6o3ybGOuk=; b=K4C1wVilciUh6Z7D+n6bodl8Ruq/egeKoGUqlxbI64jS4wuhYhLWyOnPNZagR3nlAX 4xkMhSnAvmU+I2Xo9J4ycGu8AUIYWMy/J1Oel9W9eGXxmUTzn5GTp1kUTo+v/VBtya5i JifrlwCYpGFWwPvx9t4SbFpCqreScyOJI+1JFQLq4vR3Y9Egrzaz+exGbSe0n1+/vdtq 73UE1O3/2Y8SjHcaLSstwQW6WL8ExzMTw+GPS05xWKWdoGv/Km5l0S7yqATQq5Y/P0dm BS0Cy15oCOM38nXHZkxlSvKfQG7zDHtzds49B7aLMD0qSEZ1nQ4pXDHSei0bMhcYSQTC 3L4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LuWmVF1Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id l15-20020a170903244f00b001d349ba5027si32805pls.272.2023.12.12.09.27.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 09:27:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LuWmVF1Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id D3BC8801B336; Tue, 12 Dec 2023 09:27:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233093AbjLLR12 (ORCPT + 99 others); Tue, 12 Dec 2023 12:27:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235084AbjLLR11 (ORCPT ); Tue, 12 Dec 2023 12:27:27 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F10B9F; Tue, 12 Dec 2023 09:27:32 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1d336a8e27fso4977145ad.2; Tue, 12 Dec 2023 09:27:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702402051; x=1703006851; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pAz4ODF6UTOOaFnSikdhsc6gxYzI76HyzuBIuPlXUuY=; b=LuWmVF1ZlfxEbcA1Ip24YNUouNfBptWYlMZNVsQhwm7YHjXeGtchzbeTECj0rCdMoR vMsNyi9e3Q1fa8EBAczvv6Q8JVMrd3nW/2WyYAvquthY/hDrEoGYzU+/7aT+S5PIj8qG cSeWTH/alO9zpBe/7SJutEZEeE2sdsff18aReYHoxl/zceRDnGCIh/aqsxKzC/lWlLhr k4tcGvZLHuyx6OfN/f+9xNWKCj+EQiHwaRZZNgZTY87dw+lDCBsCmuNWL/Y1f103DGXa WCD9+PbUvdazr5HJTMYXZHQkYUcAfwquYjF10J9yigj05RWKNlnMhi5yZOk1IfO68agY JWkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702402051; x=1703006851; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pAz4ODF6UTOOaFnSikdhsc6gxYzI76HyzuBIuPlXUuY=; b=ADnuixeS9hwA8Y80WBv097/9s5CXM/8rvjDZ+wOhdIXlw/7lw2DgTaAMOH09iCV/wX J87KksDYhTHw25dvuzI+iusbNMfHF8TulyIjBNEFoO6SAu6bfgsmQDxKAlDWPpONuj5E TrMun1I+gWmVNVdhzOjUVqn5VkknMF9rT0uH+KEcd4vWYG3BQy3vnGxgfMNnUsAvG0gK S/4WKdwvOv43AW/riqNm1xOmXxCPHjtVyIxta0rCfhXHJ7NDlThrkQOJV9RlUdE4wKNG j3et1ia1kzmoxGPFNRPI7gbxJNUWHkPIjJeFAxGSTtiveslyvLSJUBBwJrl4V6QyfPY+ ZiUA== X-Gm-Message-State: AOJu0YwrqdK+++EYBF1TY3AhC08dXDDkpfKN+x6pYjQfh0qsI/5KGr6v ZylWimfNo4GIkIgTxnSXF0edZRzpXGA/b56t X-Received: by 2002:a17:902:c943:b0:1d0:acd4:92ee with SMTP id i3-20020a170902c94300b001d0acd492eemr3860613pla.43.1702402051026; Tue, 12 Dec 2023 09:27:31 -0800 (PST) Received: from localhost.localdomain ([101.0.63.152]) by smtp.gmail.com with ESMTPSA id b18-20020a170902d51200b001cf511aa772sm8863170plg.145.2023.12.12.09.27.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 09:27:30 -0800 (PST) From: "Neeraj Upadhyay (AMD)" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, paulmck@kernel.org, Neeraj.Upadhyay@amd.com, Philipp Stanner , Neeraj Upadhyay Subject: [PATCH rcu 2/5] rculist.h: docs: Fix wrong function summary Date: Tue, 12 Dec 2023 22:56:50 +0530 Message-Id: <20231212172653.11485-2-neeraj.iitr10@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231212172343.GA11383@neeraj.linux> References: <20231212172343.GA11383@neeraj.linux> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 12 Dec 2023 09:27:44 -0800 (PST) From: Philipp Stanner The brief summary in the docstring for function list_next_or_null_rcu() states that the function is supposed to provide the "first" member of a list, whereas in truth it returns the next member. Change the docstring so it describes what the function actually does. Signed-off-by: Philipp Stanner Signed-off-by: Paul E. McKenney Signed-off-by: Neeraj Upadhyay (AMD) --- include/linux/rculist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rculist.h b/include/linux/rculist.h index d29740be4833..3dc1e58865f7 100644 --- a/include/linux/rculist.h +++ b/include/linux/rculist.h @@ -355,7 +355,7 @@ static inline void list_splice_tail_init_rcu(struct list_head *list, }) /** - * list_next_or_null_rcu - get the first element from a list + * list_next_or_null_rcu - get the next element from a list * @head: the head for the list. * @ptr: the list head to take the next element from. * @type: the type of the struct this is embedded in. -- 2.40.1