Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [ltt-dev] [PATCH] lttng: fix lttng compile failure
@ 2008-10-09  5:13 Wei Yongjun
  0 siblings, 0 replies; 2+ messages in thread
From: Wei Yongjun @ 2008-10-09  5:13 UTC (permalink / raw)


Thi patch fix the compile failure if config CONFIG_LTT_RELAY_CHECK_RANDOM_ACCESS.

  CC      ltt/ltt-heartbeat.o
In file included from include/linux/ltt-tracer.h:18,
                 from ltt/ltt-heartbeat.c:25:
include/linux/ltt-relay.h: In function 'ltt_relay_find_prev_page':
include/linux/ltt-relay.h:164: error: 'KERN_WARN' undeclared (first use in this function)
include/linux/ltt-relay.h:164: error: (Each undeclared identifier is reported only once
include/linux/ltt-relay.h:164: error: for each function it appears in.)
include/linux/ltt-relay.h:165: error: expected ')' before string constant
include/linux/ltt-relay.h: In function 'ltt_relay_find_next_page':
include/linux/ltt-relay.h:202: error: 'KERN_WARN' undeclared (first use in this function)
include/linux/ltt-relay.h:203: error: expected ')' before string constant
make[1]: *** [ltt/ltt-heartbeat.o] Error 1
make: *** [ltt] Error 2

Signed-off-by: Wei Yongjun <yjwei at cn.fujitsu.com>
---
 include/linux/ltt-relay.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/ltt-relay.h b/include/linux/ltt-relay.h
index aaab201..d63bd43 100644
--- a/include/linux/ltt-relay.h
+++ b/include/linux/ltt-relay.h
@@ -161,7 +161,7 @@ static inline struct buf_page *ltt_relay_find_prev_page(struct rchan_buf *buf,
 			&& offset < iter->offset + PAGE_SIZE) {
 #ifdef CONFIG_LTT_RELAY_CHECK_RANDOM_ACCESS
 			if (i > 1) {
-				printk(KERN_WARN
+				printk(KERN_WARNING
 					"Backward random access detected in "
 					"ltt_relay. Iterations %u, "
 					"offset %zu, orig iter->off %zu, "
@@ -199,7 +199,7 @@ static inline struct buf_page *ltt_relay_find_next_page(struct rchan_buf *buf,
 			&& offset < iter->offset + PAGE_SIZE) {
 #ifdef CONFIG_LTT_RELAY_CHECK_RANDOM_ACCESS
 			if (i > 1) {
-				printk(KERN_WARN
+				printk(KERN_WARNING
 					"Forward random access detected in "
 					"ltt_relay. Iterations %u, "
 					"offset %zu, orig iter->off %zu, "
-- 
1.5.3.8







^ permalink raw reply	[flat|nested] 2+ messages in thread
* [ltt-dev] [PATCH] lttng: fix lttng compile failure
@ 2008-10-09  5:11 Wei Yongjun
  0 siblings, 0 replies; 2+ messages in thread
From: Wei Yongjun @ 2008-10-09  5:11 UTC (permalink / raw)


Thi patch fix the compile failure if config
CONFIG_LTT_RELAY_CHECK_RANDOM_ACCESS.

CC ltt/ltt-heartbeat.o
In file included from include/linux/ltt-tracer.h:18,
from ltt/ltt-heartbeat.c:25:
include/linux/ltt-relay.h: In function 'ltt_relay_find_prev_page':
include/linux/ltt-relay.h:164: error: 'KERN_WARN' undeclared (first use
in this function)
include/linux/ltt-relay.h:164: error: (Each undeclared identifier is
reported only once
include/linux/ltt-relay.h:164: error: for each function it appears in.)
include/linux/ltt-relay.h:165: error: expected ')' before string constant
include/linux/ltt-relay.h: In function 'ltt_relay_find_next_page':
include/linux/ltt-relay.h:202: error: 'KERN_WARN' undeclared (first use
in this function)
include/linux/ltt-relay.h:203: error: expected ')' before string constant
make[1]: *** [ltt/ltt-heartbeat.o] Error 1
make: *** [ltt] Error 2

Signed-off-by: Wei Yongjun <yjwei at cn.fujitsu.com>
---
include/linux/ltt-relay.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/ltt-relay.h b/include/linux/ltt-relay.h
index aaab201..d63bd43 100644
--- a/include/linux/ltt-relay.h
+++ b/include/linux/ltt-relay.h
@@ -161,7 +161,7 @@ static inline struct buf_page
*ltt_relay_find_prev_page(struct rchan_buf *buf,
&& offset < iter->offset + PAGE_SIZE) {
#ifdef CONFIG_LTT_RELAY_CHECK_RANDOM_ACCESS
if (i > 1) {
- printk(KERN_WARN
+ printk(KERN_WARNING
"Backward random access detected in "
"ltt_relay. Iterations %u, "
"offset %zu, orig iter->off %zu, "
@@ -199,7 +199,7 @@ static inline struct buf_page
*ltt_relay_find_next_page(struct rchan_buf *buf,
&& offset < iter->offset + PAGE_SIZE) {
#ifdef CONFIG_LTT_RELAY_CHECK_RANDOM_ACCESS
if (i > 1) {
- printk(KERN_WARN
+ printk(KERN_WARNING
"Forward random access detected in "
"ltt_relay. Iterations %u, "
"offset %zu, orig iter->off %zu, "
-- 
1.5.3.8






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-09  5:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-09  5:13 [ltt-dev] [PATCH] lttng: fix lttng compile failure Wei Yongjun
  -- strict thread matches above, loose matches on Subject: below --
2008-10-09  5:11 Wei Yongjun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox