diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h index 199f4c207c1ec425019336775809dfbae16509f7..c5bb39c7a7703cdb7db04faf0e2b0ce2086aa19d 100644 --- a/include/linux/tracepoint.h +++ b/include/linux/tracepoint.h @@ -129,6 +129,9 @@ extern int tracepoint_get_iter_range(struct tracepoint **tracepoint, * probe unregistration and the end of module exit to make sure there is no * caller executing a probe when it is freed. */ -#define tracepoint_synchronize_unregister() synchronize_sched() +static inline void tracepoint_synchronize_unregister(void) +{ + synchronize_sched(); +} #endif