Fix type mismatch with timer callback signature.
This CL changes the function signature for TIMER_CBACK from void* to
TIMER_LIST_ENT* instead. This matches the signature of the functions
that eventually get called, and fixes the abort that CFI would
otherwise throw.
Bug: 72914286
Test: m -j50
Change-Id: If0512d87ea2746aed8e8934445514f281246ba2c
diff --git a/src/gki/common/gki.h b/src/gki/common/gki.h
index f1284c0..a6aa2e3 100644
--- a/src/gki/common/gki.h
+++ b/src/gki/common/gki.h
@@ -294,19 +294,20 @@
/* Timer list entry callback type
*/
-typedef void(TIMER_CBACK)(void* p_tle);
+struct TIMER_LIST_ENT;
+typedef void(TIMER_CBACK)(TIMER_LIST_ENT* p_tle);
/* Define a timer list entry
*/
-typedef struct _tle {
- struct _tle* p_next;
- struct _tle* p_prev;
+struct TIMER_LIST_ENT {
+ TIMER_LIST_ENT* p_next;
+ TIMER_LIST_ENT* p_prev;
TIMER_CBACK* p_cback;
int32_t ticks;
uintptr_t param;
uint16_t event;
uint8_t in_use;
-} TIMER_LIST_ENT;
+};
/* Define a timer list queue
*/