Commit 43b08ea
committed
cgroup: Fix build failure when CONFIG_SHRINKER_DEBUG
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2077665
commit c0f2df4
Author: Tejun Heo <tj@kernel.org>
Date: Sun, 28 Aug 2022 17:54:15 -1000
cgroup: Fix build failure when CONFIG_SHRINKER_DEBUG
fa7e439 ("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: Tejun Heo <tj@kernel.org>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Michal Koutný <mkoutny@suse.com>f
Fixes: fa7e439 ("cgroup: Homogenize cgroup_get_from_id() return value")
Signed-off-by: Waiman Long <longman@redhat.com>1 parent 7398e7f commit 43b08ea
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5147 | 5147 | | |
5148 | 5148 | | |
5149 | 5149 | | |
5150 | | - | |
| 5150 | + | |
5151 | 5151 | | |
5152 | 5152 | | |
5153 | 5153 | | |
| |||
0 commit comments