From: Randy Dunlap <randy.dunlap@oracle.com>
To: lkml <linux-kernel@vger.kernel.org>
Cc: akpm <akpm@linux-foundation.org>, zach.brown@oracle.com
Subject: [PATCH] aio: don't confuse DEBUG define location
Date: Fri, 21 Sep 2007 11:55:25 -0700 [thread overview]
Message-ID: <20070921115525.84b0387c.randy.dunlap@oracle.com> (raw)
From: Randy Dunlap <randy.dunlap@oracle.com>
I was debugging (via pr_debug()) why one test app was getting EINVAL
returns from aio. However, using DEBUG to enable pr_debug() needs to
be done before #include linux/kernel.h, so remove it from below there
so that someone doesn't have to debug pr_debug().
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Zach Brown <zach.brown@oracle.com>
---
fs/aio.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- linux-2.6.23-rc7.orig/fs/aio.c
+++ linux-2.6.23-rc7/fs/aio.c
@@ -8,6 +8,7 @@
*
* See ../COPYING for licensing terms.
*/
+
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/errno.h>
@@ -17,8 +18,6 @@
#include <linux/syscalls.h>
#include <linux/uio.h>
-#define DEBUG 0
-
#include <linux/sched.h>
#include <linux/fs.h>
#include <linux/file.h>
reply other threads:[~2007-09-21 18:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20070921115525.84b0387c.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zach.brown@oracle.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
all inboxes | Powered by JetHome®