Skip to contentSkip to conversation

mm: memcontrol: fix kernel-doc

PATCH In review Yang Li 3 participants 3 messages May 24, 2021 – May 25, 2021

Subsystems (3)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

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
index 64ada9e..030c1dc 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Yang Li

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.

Thanks!

Quoted 19 lines
---
 mm/memcontrol.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memcontrol.c +1 -1
index 64ada9e..030c1dc 100644
@@ -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
#2 lore raw
Quoted 5 lines · Michal Hocko
Quoted 3 lines · Yang Li

Fix function name in mm/memcontrol.c kernel-doc comment to remove a warning.

Quoted 8 lines
Quoted 6 lines

mm/memcontrol.c:6546: warning: expecting prototype for mem_cgroup_protected(). Prototype was for mem_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
index 64ada9e..030c1dc 100644
@@ -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