From: Martin Schwidefsky <schwidefsky@de.ibm.com>
To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>,
Martin Schwidefsky <schwidefsky@de.ibm.com>
Subject: [patch 4/6] cio: Make CIO_* macros safe if dbfs are not available.
Date: Fri, 27 Jul 2007 13:33:52 +0200 [thread overview]
Message-ID: <20070727113610.218646624@de.ibm.com> (raw)
In-Reply-To: 20070727113348.413110503@de.ibm.com
[-- Attachment #1: 013-cio-dbf.diff --]
[-- Type: text/plain, Size: 824 bytes --]
From: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
---
drivers/s390/cio/cio_debug.h | 2 ++
1 file changed, 2 insertions(+)
Index: quilt-2.6/drivers/s390/cio/cio_debug.h
===================================================================
--- quilt-2.6.orig/drivers/s390/cio/cio_debug.h
+++ quilt-2.6/drivers/s390/cio/cio_debug.h
@@ -23,6 +23,8 @@ extern debug_info_t *cio_debug_crw_id;
static inline void
CIO_HEX_EVENT(int level, void *data, int length)
{
+ if (unlikely(!cio_debug_trace_id))
+ return;
while (length > 0) {
debug_event(cio_debug_trace_id, level, data, length);
length -= cio_debug_trace_id->buf_size;
--
blue skies,
Martin.
"Reality continues to ruin my life." - Calvin.
next prev parent reply other threads:[~2007-07-27 11:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-27 11:33 [patch 0/6] more s390 patches for 2.6.23-rc1 Martin Schwidefsky
2007-07-27 11:33 ` [patch 1/6] vmur: fix diag14_read Martin Schwidefsky
2007-07-27 11:33 ` [patch 2/6] Fix IRQ tracing Martin Schwidefsky
2007-07-27 11:33 ` [patch 3/6] cio: Clean up messages Martin Schwidefsky
2007-07-27 11:33 ` Martin Schwidefsky [this message]
2007-07-27 11:33 ` [patch 5/6] cio: Reorganize initialization Martin Schwidefsky
2007-07-27 11:33 ` [patch 6/6] Fix sclp_vt220 error handling Martin Schwidefsky
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=20070727113610.218646624@de.ibm.com \
--to=schwidefsky@de.ibm.com \
--cc=cornelia.huck@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
/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