Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: yjwei@cn.fujitsu.com (Wei Yongjun)
Subject: [ltt-dev] [PATCH] lttng: fix lttng compile failure
Date: Thu, 09 Oct 2008 13:11:23 +0800	[thread overview]
Message-ID: <48ED927B.3010208@cn.fujitsu.com> (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






             reply	other threads:[~2008-10-09  5:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-09  5:11 Wei Yongjun [this message]
2008-10-09  5:13 Wei Yongjun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48ED927B.3010208@cn.fujitsu.com \
    --to=yjwei@cn.fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox