Re: [PATCH] cgroup: Avoid warning when procfs is disabled

From: Michal Koutný

Date: Mon Oct 12 2026 - 08:42:50 EST


On Mon, Oct 12, 2026 at 07:42:19AM +0200, Karl Mehltretter <kmehltretter@xxxxxxxxx> wrote:
> With CGROUPS=y and PROC_FS=n,

What is practical about this config? Is it real life usage?

> proc_create_single() returns NULL and
> cgroup initialization warns during every boot.
>
> Only check creation of /proc/cgroups when procfs is enabled.

The dependency on CONFIG_PROC_FS is encoded in the
proc_create_single already, it's unfortunate that it returns a value
that signifies an error.
I'd prefer more generic fix that doesn't target cgroup_init()
specifically.

Thanks,
Michal

Attachment: signature.asc
Description: PGP signature