ANDROID: vendor_hooks: Guard cgroup struct with CONFIG_CGROUPS
See commit 573c7f061d
("ANDROID: Guard hooks with their CONFIG_
options"). Needed to do CGROUPS as well due to cgroup_subsys definition
being guarded by CONFIG_CGROUPS in include/linux/cgroup-defs.h.
Bug: 240404657
Change-Id: Ie51f053a9e82ef8d7d1c149374ac02608717429d
Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
This commit is contained in:
@@ -9,12 +9,16 @@
|
|||||||
#include <trace/hooks/vendor_hooks.h>
|
#include <trace/hooks/vendor_hooks.h>
|
||||||
|
|
||||||
struct cgroup_taskset;
|
struct cgroup_taskset;
|
||||||
#ifdef __GENKSYMS__
|
#if defined(__GENKSYMS__) || !IS_ENABLED(CONFIG_CGROUPS)
|
||||||
struct cgroup_subsys;
|
struct cgroup_subsys;
|
||||||
struct task_struct;
|
|
||||||
#else
|
#else
|
||||||
/* struct cgroup_subsys */
|
/* struct cgroup_subsys */
|
||||||
#include <linux/cgroup-defs.h>
|
#include <linux/cgroup-defs.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __GENKSYMS__
|
||||||
|
struct task_struct;
|
||||||
|
#else
|
||||||
/* struct task_struct */
|
/* struct task_struct */
|
||||||
#include <linux/sched.h>
|
#include <linux/sched.h>
|
||||||
#endif /* __GENKSYMS__ */
|
#endif /* __GENKSYMS__ */
|
||||||
|
Reference in New Issue
Block a user