From: Marcelo Tosatti <[email protected]>
diff --git a/external-module-compat-comm.h b/external-module-compat-comm.h
index 44b5511..c72fb86 100644
--- a/external-module-compat-comm.h
+++ b/external-module-compat-comm.h
@@ -975,3 +975,17 @@ unsigned long kvm_vma_kernel_pagesize(struct
vm_area_struct *vma)
#define kvm_vma_kernel_pagesize vma_kernel_pagesize
#endif
+
+#ifndef printk_once
+/*
+ * Print a one-time message (analogous to WARN_ONCE() et al):
+ */
+#define printk_once(x...) ({ \
+ static int __print_once = 1; \
+ \
+ if (__print_once) { \
+ __print_once = 0; \
+ printk(x); \
+ } \
+})
+#endif
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html