Skip to content

Commit

Permalink
JFS: Remove incorrect kgdb define
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dave Kleikamp committed Jan 26, 2007
1 parent 4aa0d23 commit 7220c01
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fs/jfs/jfs_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,13 @@ 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", \
__FILE__, __LINE__, #p); \
BUG(); \
} \
} while (0)
#endif

/*
* debug ON
Expand Down

0 comments on commit 7220c01

Please sign in to comment.