Skip to content
Commit c0f2df49 authored by Tejun Heo's avatar Tejun Heo
Browse files

cgroup: Fix build failure when CONFIG_SHRINKER_DEBUG



fa7e439c ("cgroup: Homogenize cgroup_get_from_id() return value") broken
build when CONFIG_SHRINKER_DEBUG by trying to return an errno from
mem_cgroup_get_from_ino() which returns struct mem_cgroup *. Fix by using
ERR_CAST() instead.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Cc: Michal Koutný <mkoutny@suse.com>f
Fixes: fa7e439c ("cgroup: Homogenize cgroup_get_from_id() return value")
parent 075b593f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment