From: Mathieu Desnoyers Date: Fri, 3 Oct 2008 15:52:54 +0000 (-0400) Subject: markers: turn marker_synchronize_unregister() into an inline X-Git-Tag: upstream/snapshot3+hdmi~21874^2~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53c8c8fdfd2d2d515bdcb3d0f2a11d1f3f42ece1;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git markers: turn marker_synchronize_unregister() into an inline Turn marker synchronize unregister into a static inline. There is no reason to keep it as a macro over a static inline. Signed-off-by: Mathieu Desnoyers Signed-off-by: Ingo Molnar --- diff --git a/include/linux/marker.h b/include/linux/marker.h index 889196c..38e32e7 100644 --- a/include/linux/marker.h +++ b/include/linux/marker.h @@ -13,6 +13,7 @@ */ #include +#include struct module; struct marker; @@ -165,6 +166,9 @@ extern void *marker_get_private_data(const char *name, marker_probe_func *probe, * unregistration and the end of module exit to make sure there is no caller * executing a probe when it is freed. */ -#define marker_synchronize_unregister() synchronize_sched() +static inline void marker_synchronize_unregister(void) +{ + synchronize_sched(); +} #endif