Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2180402pxj; Thu, 20 May 2021 01:51:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyA+KkjQiUQk8t8GyHTa1lgqqN74/PPk9Bk6MzeY2FuA94W5FWQfKcn7IuGrzDg6ZVqd2K X-Received: by 2002:a17:906:6ada:: with SMTP id q26mr3713766ejs.237.1621500709134; Thu, 20 May 2021 01:51:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621500709; cv=none; d=google.com; s=arc-20160816; b=sY9sfA9XSmY56nijFJoX8z6iyPcUwmpSSsEuQJ8f+oQrpvzbCHrEfXPiWGoRqpF35d vdgtScveX9/dUfeRuhzwInI9Y0fz7BbXyLEenYQf+E4EBIPZWnL80P80CqJflke+A/NK MLL9G95Qx584N+ypOb6e3H06WCheCJ+WwTimfWPVlqlzwulUuwvQwVuwJzq2E8wNFNZc 4N2+KpjY31bY/gLWT+wHqaf53VcUn+x+8m/PGHwy8ewvMG/B7D+EtS3HDAWX9R8GQ5eO p4Ukfzl4JXXOV00LKMgWPCKmexAyGDjFJeFFlaDeAlqc+JVo+b4IWfJJwe+wf8cvRdlB Spxw== 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=4+yW77yvCOOpIlSyLDMpXoODOWTRqzKyZ1BFhb7alB0=; b=O/fdZR3yrBmYS6Ccis2csCkKpN4NwTv2hIU+IHPJNBiVjWwI9SOq7YLCwkDovYlNSo Zfk2A1xOrDjfQxrRxF/27n6yoDMcADrt3fGvDgXqFTTQxzBSo9EvPYjn6NHWYIvMSQY2 qaKZUtLWImNT8f3SwZKL04ZeL9kyNbyANhX+8uSlMbUReW7W61ZEIyiU6qmFroW/+G/K hTH2GfiZ72RnF02K7FbJOr/KudMzX84Mp+meFuJXEMVKLpW1B2BJyweLkWDOINch4ucn 5Py7gxedQeCryGxknnIvk7nnB53sfvffolks1hlV61h/cNgNugND5S93Rh6jCVf+V7cF q30Q== 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 f5si1691778edx.395.2021.05.20.01.51.25; Thu, 20 May 2021 01:51:49 -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 S231331AbhETIux (ORCPT + 99 others); Thu, 20 May 2021 04:50:53 -0400 Received: from outbound-smtp26.blacknight.com ([81.17.249.194]:57254 "EHLO outbound-smtp26.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231301AbhETIur (ORCPT ); Thu, 20 May 2021 04:50:47 -0400 Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp26.blacknight.com (Postfix) with ESMTPS id A19B0CACD9 for ; Thu, 20 May 2021 09:49:24 +0100 (IST) Received: (qmail 6417 invoked from network); 20 May 2021 08:49:24 -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:24 -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 06/14] mm/memcontrol.c: Fix kerneldoc comment for mem_cgroup_calculate_protection Date: Thu, 20 May 2021 09:48:01 +0100 Message-Id: <20210520084809.8576-7-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 mem_cgroup_calculate_protection mm/memcontrol.c:6468: warning: expecting prototype for mem_cgroup_protected(). Prototype was for mem_cgroup_calculate_protection() instead Commit 45c7f7e1ef17 ("mm, memcg: decouple e{low,min} state mutations from protection checks") changed the function definition but not the associated kerneldoc comment. Fixes: 45c7f7e1ef17 ("mm, memcg: decouple e{low,min} state mutations from protection checks") Signed-off-by: Mel Gorman --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 64ada9e650a5..030c1dc131ce 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -6456,7 +6456,7 @@ static unsigned long effective_protection(unsigned long usage, } /** - * mem_cgroup_protected - check if memory consumption is in the normal range + * mem_cgroup_calculate_protection - check if memory consumption is in the normal range * @root: the top ancestor of the sub-tree being checked * @memcg: the memory cgroup to check * -- 2.26.2