Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by

Mathieu Desnoyers and committed by
Ingo Molnar
bfadadfc ca538f6b

+1 -5
+1 -5
include/linux/marker.h
··· 13 13 */ 14 14 15 15 #include <linux/types.h> 16 - #include <linux/rcupdate.h> 17 16 18 17 struct module; 19 18 struct marker; ··· 165 166 * unregistration and the end of module exit to make sure there is no caller 166 167 * executing a probe when it is freed. 167 168 */ 168 - static inline void marker_synchronize_unregister(void) 169 - { 170 - synchronize_sched(); 171 - } 169 + #define marker_synchronize_unregister() synchronize_sched() 172 170 173 171 #endif