Commit 8329cba6 authored by Eric Sandeen's avatar Eric Sandeen Committed by Stephen Lord

[XFS] Remove #if(n)def __KERNEL__ from xfs_error.c, not needed

SGI Modid: 2.5.x-xfs:slinx:140981a
parent 122f9617
......@@ -239,17 +239,11 @@ xfs_cmn_err(uint64_t panic_tag, int level, xfs_mount_t *mp, char *fmt, ...)
va_end(ap);
}
#ifdef __KERNEL__
void
xfs_stack_trace(void)
{
dump_stack();
}
#endif /* __KERNEL__ */
#ifndef __KERNEL__
int xfs_error_level = XFS_ERRLEVEL_HIGH; /* systune in SIM library */
#endif /* ! __KERNEL */
void
xfs_error_report(
......@@ -271,9 +265,8 @@ xfs_error_report(
"XFS internal error %s at line %d of file %s. Caller 0x%x\n",
tag, linenum, fname, ra);
}
#ifdef __KERNEL__
xfs_stack_trace();
#endif /* __KERNEL__ */
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment