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

Commit bfadadfc authored by Mathieu Desnoyers's avatar Mathieu Desnoyers Committed by Ingo Molnar
Browse files

markers: fix synchronize marker unregister static inline



Use a #define for synchronize marker unregister to fix include dependencies.

Fixes the slab circular inclusion which triggers when slab.git is combined
with tracing.git, where rcupdate includes slab, which includes markers
which includes rcupdate.

Signed-off-by: default avatarMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Acked-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent ca538f6b
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -13,7 +13,6 @@
 */
 */


#include <linux/types.h>
#include <linux/types.h>
#include <linux/rcupdate.h>


struct module;
struct module;
struct marker;
struct marker;
@@ -166,9 +165,6 @@ 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
 * unregistration and the end of module exit to make sure there is no caller
 * executing a probe when it is freed.
 * executing a probe when it is freed.
 */
 */
static inline void marker_synchronize_unregister(void)
#define marker_synchronize_unregister() synchronize_sched()
{
	synchronize_sched();
}


#endif
#endif