Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8028f780 authored by Sami Tolvanen's avatar Sami Tolvanen Committed by Alistair Delva
Browse files

ANDROID: Disable wq fp check in CFI builds



With non-canonical CFI, LLVM generates jump table entries for external
symbols in modules and as a result, a function pointer passed from a
module to the core kernel will have a different address.

Disable the warning for now.

Bug: 145210207
Change-Id: Ifdcee3479280f7b97abdee6b4c746f447e0944e6
Signed-off-by: default avatarSami Tolvanen <samitolvanen@google.com>
Signed-off-by: default avatarAlistair Delva <adelva@google.com>
parent 08256862
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1528,7 +1528,9 @@ static void __queue_delayed_work(int cpu, struct workqueue_struct *wq,
	struct work_struct *work = &dwork->work;

	WARN_ON_ONCE(!wq);
#ifndef CONFIG_CFI
	WARN_ON_ONCE(timer->function != delayed_work_timer_fn);
#endif
	WARN_ON_ONCE(timer_pending(timer));
	WARN_ON_ONCE(!list_empty(&work->entry));