Skip to contentSkip to conversation

kvm-kmod: Fix tracepoint warnings against OpenSUSE's 2.6.27

PATCH Applied Jan Kiszka 2 participants 2 messages Jun 25, 2009 – Jun 28, 2009 KVM

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 kvm-kmod: Fix tracepoint warnings against OpenSUSE's 2.6.27

OpenSUSE's 2.6.27 already includes tracepoints and generates a lot of warnings regarding redefinition of tracepoint_synchronize_unregister.

---

 external-module-compat-comm.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
external-module-compat-comm.h +2 -1
index c0ae66c..c681dd3 100644
@@ -841,7 +841,7 @@ static inline struct file *eventfd_fget(int fd)
 
 #endif
 
-/* tracepoints were introduced in 2.6.29, but changed in 2.6.30 */
+/* tracepoints were introduced in 2.6.28, but changed in 2.6.30 */
 
 #include <linux/tracepoint.h>
 
@@ -884,6 +884,7 @@ struct tracepoint;
 #define TRACE_EVENT(name, proto, args, struct, assign, print)	\
 	DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
 
+#undef tracepoint_synchronize_unregister
 #define tracepoint_synchronize_unregister() do {} while (0)
 
 #endif
Applied
#1 lore raw
Quoted 3 lines · Jan Kiszka

OpenSUSE's 2.6.27 already includes tracepoints and generates a lot of warnings regarding redefinition of tracepoint_synchronize_unregister.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function