summaryrefslogtreecommitdiffstats
path: root/sys/dev/hptrr/hptrr_os_bsd.c
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2008-03-08 18:06:48 +0000
committerscottl <scottl@FreeBSD.org>2008-03-08 18:06:48 +0000
commita6a8fbd50cdc8a1e6b0b60e90dbe6c178f3e1e2d (patch)
tree0397f830e40c56dba254410af17109ce080ce3eb /sys/dev/hptrr/hptrr_os_bsd.c
parentbb693858431cd9899acd538fd6f41f570340b660 (diff)
downloadFreeBSD-src-a6a8fbd50cdc8a1e6b0b60e90dbe6c178f3e1e2d.zip
FreeBSD-src-a6a8fbd50cdc8a1e6b0b60e90dbe6c178f3e1e2d.tar.gz
Fix a mistake made during the import of the driver. Previous versions of
HPT drivers would sometimes test the value of a preprocessor definition but not always make sure that the definition existed in the first place, leading to warnings on newer compilers. I blindly assumed the same with this driver, and it turned out to be wrong and to enable some code that doesn't work.
Diffstat (limited to 'sys/dev/hptrr/hptrr_os_bsd.c')
-rw-r--r--sys/dev/hptrr/hptrr_os_bsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/hptrr/hptrr_os_bsd.c b/sys/dev/hptrr/hptrr_os_bsd.c
index a469e1b..81a3829 100644
--- a/sys/dev/hptrr/hptrr_os_bsd.c
+++ b/sys/dev/hptrr/hptrr_os_bsd.c
@@ -132,7 +132,7 @@ void freelist_reserve(struct freelist *list, void *osext, HPT_UINT size, HPT_UIN
list->dma = 0;
list->size = size;
list->head = 0;
-#ifdef DBG
+#if DBG
list->reserved_count =
#endif
list->count = count;
@@ -172,7 +172,7 @@ void freelist_reserve_dma(struct freelist *list, void *osext, HPT_UINT size, HPT
list->alignment = alignment;
list->size = size;
list->head = 0;
-#ifdef DBG
+#if DBG
list->reserved_count =
#endif
list->count = count;
@@ -289,7 +289,7 @@ int os_printk(char *fmt, ...)
return printf("%s: %s\n", driver_name, buf);
}
-#ifdef DBG
+#if DBG
void os_check_stack(const char *location, int size){}
void __os_dbgbreak(const char *file, int line)
OpenPOWER on IntegriCloud