[PATCH 2/2] JFS: Remove incorrect kgdb define

[email protected] (Dave Kleikamp) Mon, 29 Jan 2007 15:20:14 -0600 (CST)
Newsgroups gmane.comp.file-systems.jfs.patches
Message-ID <[email protected]>
JFS: Remove incorrect kgdb define

jfs_debug.h uses an incorrect CONFIG_KERNEL_ASSERT ifdef to redefine the
assert macro for kgdb use.  I believe the code worked a long time ago, but
today it's not a valid config option.  Since I'm not aware of anybody
interested in debugging jfs with kgdb, it should just be removed.

Thanks to Robert P. J. Day for reporting this.

Signed-off-by: Dave Kleikamp <[email protected]>

---
commit 7220c0177b45600eef2cfd3e5e57ab5b96f3222c
tree f072aadb3cb6dbe8f8159d935df157c8d062b29f
parent 4aa0d230c2cfc1ac4bcf7c5466f9943cf14233a9
author Dave Kleikamp <[email protected]> Fri, 26 Jan 2007 10:14:36 -0600
committer Dave Kleikamp <[email protected]> Fri, 26 Jan 2007 10:14:36 -0600

 fs/jfs/jfs_debug.h |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/fs/jfs/jfs_debug.h b/fs/jfs/jfs_debug.h
index ddffbbd..7378798 100644
--- a/fs/jfs/jfs_debug.h
+++ b/fs/jfs/jfs_debug.h
@@ -39,10 +39,6 @@ extern void jfs_proc_clean(void);
 /*
  *	assert with traditional printf/panic
  */
-#ifdef CONFIG_KERNEL_ASSERTS
-/* kgdb stuff */
-#define assert(p) KERNEL_ASSERT(#p, p)
-#else
 #define assert(p) do {	\
 	if (!(p)) {	\
 		printk(KERN_CRIT "BUG at %s:%d assert(%s)\n",	\
@@ -50,7 +46,6 @@ extern void jfs_proc_clean(void);
 		BUG();	\
 	}		\
 } while (0)
-#endif
 
 /*
  *	debug ON

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV