Skip to contentSkip to conversation

aio: don't confuse DEBUG define location

PATCH New Randy Dunlap 1 participant 1 message Sep 21, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aio: don't confuse DEBUG define location

From: Randy Dunlap <[email protected]>

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().

---
 fs/aio.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
fs/aio.c +1 -2
@@ -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>