]> git.ipfire.org Git - thirdparty/linux.git/commit
cgroup: Drop sock_cgroup_classid() dummy implementation
authorMichal Koutný <mkoutny@suse.com>
Tue, 3 Jun 2025 15:45:27 +0000 (17:45 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 3 Jun 2025 18:26:36 +0000 (08:26 -1000)
commitedfc4c8a1edffa6849e19ffade1be8dd824989d0
tree2b44e3ba0a69a2fd70cae7e7cfa8bc5eb0c259c6
parent2043ae9019e0f75c7785048230586c3f3ca0a2a4
cgroup: Drop sock_cgroup_classid() dummy implementation

The semantic of returning 0 is unclear when !CONFIG_CGROUP_NET_CLASSID.
Since there are no callers of sock_cgroup_classid() with that config
anymore we can undefine the helper at all and enforce all (future)
callers to handle cases when !CONFIG_CGROUP_NET_CLASSID.

Signed-off-by: Michal Koutný <mkoutny@suse.com>
Link: https://lore.kernel.org/r/Z_52r_v9-3JUzDT7@calendula/
Acked-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/cgroup-defs.h