]> git.baikalelectronics.ru Git - kernel.git/commit
hugetlb: make hugetlb depends on SYSFS or SYSCTL
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 1 Sep 2022 12:00:30 +0000 (20:00 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 03:26:10 +0000 (20:26 -0700)
commit06a57222f8fea8e0546b5401f81443a282d79a42
treee7a8cb65c8b3bbace483c0cb23f01d7972e0849e
parentcaa7ac51408346ea620ef4f5831eb2c0415b9931
hugetlb: make hugetlb depends on SYSFS or SYSCTL

If CONFIG_SYSFS and CONFIG_SYSCTL are both undefined, hugetlb doesn't work
now as there's no way to set max huge pages. Make sure at least one of the
above configs is defined to make hugetlb works as expected.

Link: https://lkml.kernel.org/r/20220901120030.63318-11-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/Kconfig