ANDROID: Fix for kernelci !CONFIG_SMP break-breaks

ab9c52146f ("ANDROID: cgroup: Add vendor hook for rebuild_root_domains_bypass")
introduced a hook that declared a parameter whose name collided with a
global variable. If !CONFIG_SMP, this global variable is instead a
compile-time constant which causes this error:

include/linux/cpu.h:101:28: error: expected ‘;’, ‘,’ or ‘)’ before numeric constant

Fixes: ab9c52146f ("ANDROID: cgroup: Add vendor hook for rebuild_root_domains_bypass")
Signed-off-by: Todd Kjos <tkjos@google.com>
Change-Id: I7831c5067be2ee548e8f6885eec99ab9085414fa
This commit is contained in:
Todd Kjos
2022-10-04 20:52:53 +00:00
committed by Treehugger Robot
parent 9bc66fe57c
commit b6a23be181

View File

@@ -394,8 +394,8 @@ DECLARE_HOOK(android_vh_mmput,
TP_ARGS(unused));
DECLARE_HOOK(android_vh_rebuild_root_domains_bypass,
TP_PROTO(bool cpuhp_tasks_frozen, bool *bypass),
TP_ARGS(cpuhp_tasks_frozen, bypass));
TP_PROTO(bool tasks_frozen, bool *bypass),
TP_ARGS(tasks_frozen, bypass));
/* macro versions of hooks are no longer required */
#endif /* _TRACE_HOOK_SCHED_H */