summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/io/bscbus.c4
-rw-r--r--usr/src/uts/common/io/bscv.c5
-rw-r--r--usr/src/uts/common/io/mwl/mwl.c6
-rw-r--r--usr/src/uts/common/io/rtw/rtwvar.h4
-rw-r--r--usr/src/uts/common/io/rwd/rt2661.c6
-rw-r--r--usr/src/uts/common/io/rwn/rt2860.c4
-rw-r--r--usr/src/uts/common/io/uath/uath.c6
-rw-r--r--usr/src/uts/common/sys/fibre-channel/impl/fp.h6
-rw-r--r--usr/src/uts/common/sys/scsi/targets/sddef.h9
9 files changed, 37 insertions, 13 deletions
diff --git a/usr/src/uts/common/io/bscbus.c b/usr/src/uts/common/io/bscbus.c
index 318ed40d69..b229f08a76 100644
--- a/usr/src/uts/common/io/bscbus.c
+++ b/usr/src/uts/common/io/bscbus.c
@@ -22,6 +22,8 @@
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
+ * Copyright 2019 Joyent, Inc.
+ *
* The "bscbus" driver provides access to the LOMlite2 virtual registers,
* so that its clients (children) need not be concerned with the details
* of the access mechanism, which in this case is implemented via a
@@ -404,7 +406,7 @@ bscbus_trace(struct bscbus_channel_state *csp, char code, const char *caller,
}
}
#else /* DEBUG */
-#define bscbus_trace
+#define bscbus_trace(...) (void)(0)
#endif /* DEBUG */
static struct bscbus_state *
diff --git a/usr/src/uts/common/io/bscv.c b/usr/src/uts/common/io/bscv.c
index 829268c822..a3923d5287 100644
--- a/usr/src/uts/common/io/bscv.c
+++ b/usr/src/uts/common/io/bscv.c
@@ -23,6 +23,9 @@
* Use is subject to license terms.
*/
+/*
+ * Copyright 2019 Joyent, Inc.
+ */
/*
* bscv.c - multi-threaded lom driver for the Stiletto platform.
@@ -404,7 +407,7 @@ static int bscv_trace_flag = 1;
#define BSCV_TRACE if (bscv_trace_flag != 0) bscv_trace
#else
-#define BSCV_TRACE
+#define BSCV_TRACE(...) (void)(0)
#endif
/*
diff --git a/usr/src/uts/common/io/mwl/mwl.c b/usr/src/uts/common/io/mwl/mwl.c
index 98d0892326..47bffb6cd8 100644
--- a/usr/src/uts/common/io/mwl/mwl.c
+++ b/usr/src/uts/common/io/mwl/mwl.c
@@ -34,6 +34,10 @@
*/
/*
+ * Copyright 2019 Joyent, Inc.
+ */
+
+/*
* Driver for the Marvell 88W8363 Wireless LAN controller.
*/
#include <sys/stat.h>
@@ -128,7 +132,7 @@ uint32_t mwl_dbg_flags = 0x0;
#define MWL_DBG \
mwl_debug
#else
-#define MWL_DBG
+#define MWL_DBG(...) (void)(0)
#endif
/*
diff --git a/usr/src/uts/common/io/rtw/rtwvar.h b/usr/src/uts/common/io/rtw/rtwvar.h
index 1b0aabbbe5..e034d3bd4c 100644
--- a/usr/src/uts/common/io/rtw/rtwvar.h
+++ b/usr/src/uts/common/io/rtw/rtwvar.h
@@ -1,6 +1,8 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ *
+ * Copyright 2019 Joyent, Inc.
*/
/*
* Copyright (c) 2004, 2005 David Young. All rights reserved.
@@ -78,7 +80,7 @@ extern void rtw_dbg(uint32_t dbg_flags, const int8_t *fmt, ...);
#define RTW_DPRINTF \
rtw_dbg
#else /* DEBUG */
-#define RTW_DPRINTF
+#define RTW_DPRINTF(...) (void)(0)
#endif /* DEBUG */
enum rtw_locale {
diff --git a/usr/src/uts/common/io/rwd/rt2661.c b/usr/src/uts/common/io/rwd/rt2661.c
index df3e688e4d..97de5ab482 100644
--- a/usr/src/uts/common/io/rwd/rt2661.c
+++ b/usr/src/uts/common/io/rwd/rt2661.c
@@ -25,6 +25,10 @@
* http://www.ralinktech.com/
*/
+/*
+ * Copyright 2019 Joyent, Inc.
+ */
+
#include <sys/types.h>
#include <sys/byteorder.h>
#include <sys/conf.h>
@@ -77,7 +81,7 @@ uint32_t rt2661_dbg_flags = 0;
#define RWD_DEBUG \
rt2661_debug
#else
-#define RWD_DEBUG
+#define RWD_DEBUG(...) (void)(0)
#endif
static void *rt2661_soft_state_p = NULL;
diff --git a/usr/src/uts/common/io/rwn/rt2860.c b/usr/src/uts/common/io/rwn/rt2860.c
index 5aaeebb4ac..f58c2c3f10 100644
--- a/usr/src/uts/common/io/rwn/rt2860.c
+++ b/usr/src/uts/common/io/rwn/rt2860.c
@@ -2,7 +2,7 @@
* Copyright 2017 Gary Mills
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
- * Copyright (c) 2018, Joyent, Inc.
+ * Copyright 2019 Joyent, Inc.
*/
/*
@@ -73,7 +73,7 @@ uint32_t rt2860_dbg_flags = 0x0;
#define RWN_DEBUG \
rt2860_debug
#else
-#define RWN_DEBUG
+#define RWN_DEBUG(...) (void)(0)
#endif
static void *rt2860_soft_state_p = NULL;
diff --git a/usr/src/uts/common/io/uath/uath.c b/usr/src/uts/common/io/uath/uath.c
index 3353369389..4d24e55316 100644
--- a/usr/src/uts/common/io/uath/uath.c
+++ b/usr/src/uts/common/io/uath/uath.c
@@ -4,6 +4,10 @@
*/
/*
+ * Copyright 2019 Joyent, Inc.
+ */
+
+/*
* Copyright (c) 2006 Sam Leffler, Errno Consulting
* Copyright (c) 2008-2009 Weongyo Jeong <weongyo@freebsd.org>
* All rights reserved.
@@ -94,7 +98,7 @@ uint32_t uath_dbg_flags = 0;
#define UATH_DEBUG \
uath_debug
#else
-#define UATH_DEBUG
+#define UATH_DEBUG(...) (void)(0)
#endif
/*
diff --git a/usr/src/uts/common/sys/fibre-channel/impl/fp.h b/usr/src/uts/common/sys/fibre-channel/impl/fp.h
index 56fb941de1..f8844a29dd 100644
--- a/usr/src/uts/common/sys/fibre-channel/impl/fp.h
+++ b/usr/src/uts/common/sys/fibre-channel/impl/fp.h
@@ -23,6 +23,10 @@
* Use is subject to license terms.
*/
+/*
+ * Copyright 2019 Joyent, Inc.
+ */
+
#ifndef _FP_H
#define _FP_H
@@ -126,7 +130,7 @@ extern "C" {
#else
-#define FP_DTRACE
+#define FP_DTRACE(...) (void)(0)
#endif
diff --git a/usr/src/uts/common/sys/scsi/targets/sddef.h b/usr/src/uts/common/sys/scsi/targets/sddef.h
index 06f55bd91c..57e1e01aec 100644
--- a/usr/src/uts/common/sys/scsi/targets/sddef.h
+++ b/usr/src/uts/common/sys/scsi/targets/sddef.h
@@ -24,6 +24,7 @@
/*
* Copyright 2011 cyril.galibern@opensvc.com
* Copyright 2017 Nexenta Systems, Inc. All rights reserved.
+ * Copyright 2019 Joyent, Inc.
*/
#ifndef _SYS_SCSI_TARGETS_SDDEF_H
@@ -1164,10 +1165,10 @@ struct sd_fi_arq {
#else
#undef SDDEBUG
-#define SD_ERROR { if (0) sd_log_err; }
-#define SD_TRACE { if (0) sd_log_trace; }
-#define SD_INFO { if (0) sd_log_info; }
-#define SD_DUMP_MEMORY { if (0) sd_dump_memory; }
+#define SD_ERROR(...) (void)(0)
+#define SD_TRACE(...) (void)(0)
+#define SD_INFO(...) (void)(0)
+#define SD_DUMP_MEMORY(...) (void)(0)
#endif