[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081003155254.GB1607@Krystal>
Date: Fri, 3 Oct 2008 11:52:54 -0400
From: Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>
To: Ingo Molnar <mingo@...e.hu>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: [PATCH] Markers synchronize unregister static inline
Turn marker synchronize unregister into a static inline. There is no reason to
keep it as a macro over a static inline.
Ingo, can you pull this into -tip on top of the previous "Markers
synchronize unregister" patch ?
Thanks,
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>
CC: Ingo Molnar <mingo@...e.hu>
CC: Andrew Morton <akpm@...ux-foundation.org>
---
include/linux/marker.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Index: linux-2.6-lttng/include/linux/marker.h
===================================================================
--- linux-2.6-lttng.orig/include/linux/marker.h 2008-10-03 11:31:21.000000000 -0400
+++ linux-2.6-lttng/include/linux/marker.h 2008-10-03 11:34:37.000000000 -0400
@@ -14,6 +14,7 @@
#include <linux/immediate.h>
#include <linux/types.h>
+#include <linux/rcupdate.h>
struct module;
struct task_struct;
@@ -218,7 +219,10 @@ extern void *marker_get_private_data(con
* 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();
+}
struct marker_iter {
struct module *module;
--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists