From: Mel Gorman Date: Wed, 2 Jun 2021 03:53:04 +0000 (+1000) Subject: mm/memcontrol.c: fix kerneldoc comment for mem_cgroup_calculate_protection X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0056e276d02055f95a3c351a12a30f47e0322bdd;p=users%2Fjedix%2Flinux-maple.git mm/memcontrol.c: fix kerneldoc comment for mem_cgroup_calculate_protection 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. Link: https://lkml.kernel.org/r/20210520084809.8576-7-mgorman@techsingularity.net Fixes: 45c7f7e1ef17 ("mm, memcg: decouple e{low,min} state mutations from protection checks") Signed-off-by: Mel Gorman Reviewed-by: Yang Shi Acked-by: Chris Down Acked-by: Vlastimil Babka Cc: Dan Streetman Cc: David Hildenbrand Cc: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 29ac99d6db5a1..b9a6db6a7d4f8 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -6626,7 +6626,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 *