summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2004-09-20 00:13:10 +0000
committermarius <marius@FreeBSD.org>2004-09-20 00:13:10 +0000
commitd09ac978f8cfc4e2a2c3d47f1c3c0abb02f4d1e4 (patch)
tree79b4ccf115cdfedf3651e940f5e82a0dc796bb43
parentdc2f64929fdf057c2db7770fe455051e7aecd57f (diff)
downloadFreeBSD-src-d09ac978f8cfc4e2a2c3d47f1c3c0abb02f4d1e4.zip
FreeBSD-src-d09ac978f8cfc4e2a2c3d47f1c3c0abb02f4d1e4.tar.gz
Fix compilation of vinum(4) when VINUMDEBUG is not defined.
PR: 71341 Submitted by: Phil Budne <phil@tripadvisor.com> MT5 candidate.
-rw-r--r--sys/dev/vinum/vinumext.h2
-rw-r--r--sys/dev/vinum/vinummemory.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/vinum/vinumext.h b/sys/dev/vinum/vinumext.h
index e60356c..ed2e6a5 100644
--- a/sys/dev/vinum/vinumext.h
+++ b/sys/dev/vinum/vinumext.h
@@ -247,7 +247,7 @@ void FFree(void *mem, char *, int);
#define LOCKDRIVE(d) lockdrive (d, __FILE__, __LINE__)
#else
#define Malloc(x) malloc((x), M_DEVBUF, \
- curthread->td_proc->p_intr_nesting_level == 0? M_WAITOK: M_NOWAIT)
+ curthread->td_intr_nesting_level == 0? M_WAITOK: M_NOWAIT)
#define Free(x) free((x), M_DEVBUF)
#define LOCKDRIVE(d) lockdrive (d)
#endif
diff --git a/sys/dev/vinum/vinummemory.c b/sys/dev/vinum/vinummemory.c
index ef8a541..43e1937 100644
--- a/sys/dev/vinum/vinummemory.c
+++ b/sys/dev/vinum/vinummemory.c
@@ -92,7 +92,6 @@ LongJmp(jmp_buf buf, int retval)
#else /* not i386 */
#define LongJmp longjmp /* just use the kernel function */
#endif /* i386 */
-#endif /* VINUMDEBUG */
/* find the base name of a path name */
char *
@@ -105,6 +104,7 @@ basename(char *file)
else
return ++f; /* skip the / */
}
+#endif /* VINUMDEBUG */
#ifdef VINUMDEBUG
void
OpenPOWER on IntegriCloud