Skip to content

Commit 7220c01

Browse files
author
Dave Kleikamp
committed
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 <shaggy@austin.ibm.com>
1 parent 4aa0d23 commit 7220c01

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎fs/jfs/jfs_debug.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,13 @@ extern void jfs_proc_clean(void);
3939
/*
4040
* assert with traditional printf/panic
4141
*/
42-
#ifdef CONFIG_KERNEL_ASSERTS
43-
/* kgdb stuff */
44-
#define assert(p) KERNEL_ASSERT(#p, p)
45-
#else
4642
#define assert(p) do { \
4743
if (!(p)) { \
4844
printk(KERN_CRIT "BUG at %s:%d assert(%s)\n", \
4945
__FILE__, __LINE__, #p); \
5046
BUG(); \
5147
} \
5248
} while (0)
53-
#endif
5449

5550
/*
5651
* debug ON

0 commit comments

Comments
 (0)