ANDROID: Fix build error with CONFIG_UCLAMP_TASK disabled
After 7b26719a77c4 ("ANDROID: GKI: use internal type definitions in vendor hooks") we stopped providing a forward declaration of 'struct uclamp_se' and instead relied on pulling its definition from linux/sched.h. the 'uclamp_se' structure is conditionally defined based upon CONFIG_UCLAMP_TASK therefore causing a build error to show up for the android_rvh_uclamp_eff_get trace point. Fix this by providing a forward declaration of 'struct uclamp_se' like before. Fixes: 7b26719a77c4 ("ANDROID: GKI: use internal type definitions in vendor hooks") Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com> Change-Id: Iaa803d149150c1703435f9cfa52ea1406a9521fd
This commit is contained in:

committed by
Todd Kjos

parent
1590a0e8e1
commit
8d6d335851
@@ -283,6 +283,8 @@ DECLARE_HOOK(android_vh_set_wake_flags,
|
||||
TP_PROTO(int *wake_flags, unsigned int *mode),
|
||||
TP_ARGS(wake_flags, mode));
|
||||
|
||||
/* Conditionally defined upon CONFIG_UCLAMP_TASK */
|
||||
struct uclamp_se;
|
||||
DECLARE_RESTRICTED_HOOK(android_rvh_uclamp_eff_get,
|
||||
TP_PROTO(struct task_struct *p, enum uclamp_id clamp_id,
|
||||
struct uclamp_se *uclamp_max, struct uclamp_se *uclamp_eff, int *ret),
|
||||
|
Reference in New Issue
Block a user