Re: [PATCH] mm: hugetlb: correct CONFIG_CGROUP_HUGETLB macro name in comment
From: David Hildenbrand (Arm)
Date: Tue Jun 23 2026 - 03:40:34 EST
On 6/16/26 02:01, Ethan Nelson-Moore wrote:
> A comment in <linux/hugetlb_cgroup.h> incorrectly refers to
> CONFIG_MEM_RES_CTLR_HUGETLB, which has never existed in the kernel,
> instead of CONFIG_CGROUP_HUGETLB. Correct it.
>
> Discovered while searching for CONFIG_* symbols referenced in code but
> not defined in any Kconfig file.
>
> Signed-off-by: Ethan Nelson-Moore <enelsonmoore@xxxxxxxxx>
> ---
> include/linux/hugetlb_cgroup.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/hugetlb_cgroup.h b/include/linux/hugetlb_cgroup.h
> index e5d64b8b59c2..16d72c8c71f6 100644
> --- a/include/linux/hugetlb_cgroup.h
> +++ b/include/linux/hugetlb_cgroup.h
> @@ -267,5 +267,5 @@ static inline void hugetlb_cgroup_migrate(struct folio *old_folio,
> {
> }
>
> -#endif /* CONFIG_MEM_RES_CTLR_HUGETLB */
> +#endif /* CONFIG_CGROUP_HUGETLB */
> #endif
Right, commit 2bc64a204697 ("mm/hugetlb: add new HugeTLB cgroup") introduced
that. Probably a leftover after reworks.
Reviewed-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
--
Cheers,
David