Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp207048pxj; Thu, 20 May 2021 07:40:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNlthWx0bkiiGNTQJpeCd+vxr7C3oZTkum9MuNrni5fjDxM6h7SslfcncFWo7QYYn57VvI X-Received: by 2002:a17:906:26cb:: with SMTP id u11mr5111216ejc.385.1621521607857; Thu, 20 May 2021 07:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621521607; cv=none; d=google.com; s=arc-20160816; b=BQqcaxMt0k9CP+29Xub4VuoLb8u7uNphDnNx9GBMleWF7m/644iCttxTxqCtnwQFGo dkBUhp9cK8jqvuQDfDsax7oAYNAMXQpfeHqoHrIZVrN5o0fqBpGvWF9oNB2NpIuMS0Hf BSqmgtMaX64F2UvBYLuoHzHHhdkrF5qof3uKmTZW8FR5nHKSyje0oOGOzjL2OnOh06Ql 7qFjF58KU33U3h2UZRoquuWuyobGLnUYJ7mlJshmbM4q9Ld1Fepz2H/0jECgkKhelfSY 8mJGUFXEL/yQzr9erJL31MAYa9B8+1TKVi5Ut/Qw2ELhWGYovVYaA2iP/i7r5KfSCG7k yMFA== 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; bh=w/X2NAgdxQwdwGEt912KC5jphFRylkE6EdM1GSbVk2k=; b=GGmKZu0N6QVFYSrWpBQiL/eYNKVByKMHC+81O/xQsJQDHgN7AkyofEGR+9bEFCenx1 LmJvOmstjTSan/ZS4CbZLeRCHZlxyWch/+4usbyKZ5NCBR7x7DHlvdRhFX7/7hNWGT5o iuSno1B3k5lKqf6EBAAFE5q5fdtVRZXTIJ5hpN1g8RPb3otV7BIL3ywdTOXp6r63Hggl byJbFtbubZZtIYxWXsdl2nDNPwOylSQxyqSWLEdxruUIBxu3MHU66RkQLm3vP7Zu3vZo Z0W4RziEMYu2aI3XsQGg9N5F3gzC5/cwj4Ot/AhX5H+KCHqoG91CHu3EUN+6a8nMwZP9 1PXQ== ARC-Authentication-Results: i=1; mx.google.com; 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 k11si2351094eds.277.2021.05.20.07.39.43; Thu, 20 May 2021 07:40:07 -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; 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 S231378AbhETIu6 (ORCPT + 99 others); Thu, 20 May 2021 04:50:58 -0400 Received: from outbound-smtp24.blacknight.com ([81.17.249.192]:42482 "EHLO outbound-smtp24.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231301AbhETIu6 (ORCPT ); Thu, 20 May 2021 04:50:58 -0400 Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp24.blacknight.com (Postfix) with ESMTPS id 430FDC0C2E for ; Thu, 20 May 2021 09:49:35 +0100 (IST) Received: (qmail 7090 invoked from network); 20 May 2021 08:49:35 -0000 Received: from unknown (HELO stampy.112glenside.lan) (mgorman@techsingularity.net@[84.203.23.168]) by 81.17.254.9 with ESMTPA; 20 May 2021 08:49:34 -0000 From: Mel Gorman To: Andrew Morton Cc: Michal Hocko , David Hildenbrand , Vlastimil Babka , Dan Streetman , Yang Shi , Linux-MM , LKML , Mel Gorman Subject: [PATCH 07/14] mm/memory_hotplug: Fix kerneldoc comment for __try_online_node Date: Thu, 20 May 2021 09:48:02 +0100 Message-Id: <20210520084809.8576-8-mgorman@techsingularity.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210520084809.8576-1-mgorman@techsingularity.net> References: <20210520084809.8576-1-mgorman@techsingularity.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org make W=1 generates the following warning for try_online_node mm/memory_hotplug.c:1087: warning: expecting prototype for try_online_node(). Prototype was for __try_online_node() instead Commit b9ff036082cd ("mm/memory_hotplug.c: make add_memory_resource use __try_online_node") renamed the function but did not update the associated kerneldoc. The function is static and somewhat specialised in nature so it's not clear it warrants being a kerneldoc by moving the comment to try_online_node. Hence, leave the comment of the internal helper in place but leave it out of kerneldoc and correct the function name in the comment. Fixes: Commit b9ff036082cd ("mm/memory_hotplug.c: make add_memory_resource use __try_online_node") Signed-off-by: Mel Gorman --- mm/memory_hotplug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 70620d0dd923..e3266be1d020 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -1072,8 +1072,8 @@ static void rollback_node_hotadd(int nid) } -/** - * try_online_node - online a node if offlined +/* + * __try_online_node - online a node if offlined * @nid: the node ID * @set_node_online: Whether we want to online the node * called by cpu_up() to online a node without onlined memory. -- 2.26.2