mm: memcontrol: fix kernel-doc
Subsystems (3)
PATCH 1/1 mm: memcontrol: fix kernel-doc
Fix function name in mm/memcontrol.c kernel-doc comment to remove a warning.
mm/memcontrol.c:6546: warning: expecting prototype for mem_cgroup_protected(). Prototype was for mem_cgroup_calculate_protection() instead.
--- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memcontrol.c +1 -1
@@ -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 *
Signature · 1 line
1.8.3.1
Quoted 9 lines · Yang Li
Fix function name in
mm/memcontrol.ckernel-doc comment to remove a warning.
mm/memcontrol.c:6546: warning: expecting prototype formem_cgroup_protected(). Prototype was formem_cgroup_calculate_protection()instead.
Thanks!
Quoted 19 lines
--- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/memcontrol.c +1
-1@@ -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 * Signature · 1 line
1.8.3.1
Signature · 2 lines
Michal Hocko SUSE Labs
Quoted 5 lines · Michal Hocko
Quoted 3 lines · Yang Li
Fix function name in
mm/memcontrol.ckernel-doc comment to remove a warning.
Quoted 8 lines
Quoted 6 lines
mm/memcontrol.c:6546: warning: expecting prototype formem_cgroup_protected(). Prototype was formem_cgroup_calculate_protection()instead.
It seems this has been covered by Mel's W=1 warning cleanup series,
see https://lore.kernel.org/linux-mm/20210520084809.8576-7-mgorman-3eNAlZScCAx27rWaFMvyedHuzzzSOjJt@public.gmane.org/.
Quoted 27 lines
Thanks!
Quoted 18 lines
--- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/memcontrol.c +1
-2@@ -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 * -- Quoted 1 line
1.8.3.1
--
Michal Hocko
SUSE Labs