From: Mathieu Desnoyers Date: Sun, 22 Jan 2012 21:17:27 +0000 (-0500) Subject: Remove #warning X-Git-Tag: v2.0-pre12~14 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=22f8d33adaf82f102c4cef3b95220d188b487693;p=lttng-modules.git Remove #warning Keep a comment about future work, but don't generate compiler warnings. Signed-off-by: Mathieu Desnoyers --- diff --git a/wrapper/poll.h b/wrapper/poll.h index 080717bd..540be315 100644 --- a/wrapper/poll.h +++ b/wrapper/poll.h @@ -9,7 +9,10 @@ #include -#warning "poll_wait_set_exclusive() is defined as no-op. Thundering herd effect can be noticed with large number of consumer threads." +/* + * Note: poll_wait_set_exclusive() is defined as no-op. Thundering herd + * effect can be noticed with large number of consumer threads. + */ #define poll_wait_set_exclusive(poll_table) diff --git a/wrapper/trace-clock.h b/wrapper/trace-clock.h index 05ab055a..d2579725 100644 --- a/wrapper/trace-clock.h +++ b/wrapper/trace-clock.h @@ -56,6 +56,12 @@ static inline u32 trace_clock_freq_scale(void) static inline int get_trace_clock(void) { + /* + * LTTng: Using mainline kernel monotonic clock. NMIs will not be + * traced, and expect significant performance degradation compared to + * the LTTng trace clocks. Integration of the LTTng 0.x trace clocks + * into LTTng 2.0 is planned in a near future. + */ printk(KERN_WARNING "LTTng: Using mainline kernel monotonic clock.\n"); printk(KERN_WARNING " * NMIs will not be traced,\n"); printk(KERN_WARNING " * expect significant performance degradation compared to the\n"); @@ -63,8 +69,6 @@ static inline int get_trace_clock(void) printk(KERN_WARNING "Integration of the LTTng 0.x trace clocks into LTTng 2.0 is planned\n"); printk(KERN_WARNING "in a near future.\n"); -#warning "LTTng: Using mainline kernel monotonic clock. NMIs will not be traced, and expect significant performance degradation compared to the LTTng trace clocks. Integration of the LTTng 0.x trace clocks into LTTng 2.0 is planned in a near future." - return 0; }