Fri Aug 24 16:37:19 2018 UTC ()
<sys/queue.h> for TAILQ_*.  Parenthesize macro arguments.


(riastradh)
diff -r1.8 -r1.9 src/sys/sys/sdt.h

cvs diff -r1.8 -r1.9 src/sys/sys/sdt.h (expand / switch to context diff)
--- src/sys/sys/sdt.h 2018/08/24 03:25:01 1.8
+++ src/sys/sys/sdt.h 2018/08/24 16:37:19 1.9
@@ -78,6 +78,7 @@
 #else /* _KERNEL */
 
 #include <sys/cdefs.h>
+#include <sys/queue.h>
 
 #ifdef _KERNEL_OPT
 #include "opt_dtrace.h"
@@ -170,8 +171,8 @@
 #define SDT_PROBE(prov, mod, func, name, arg0, arg1, arg2, arg3, arg4)	do {	\
 	if (sdt_##prov##_##mod##_##func##_##name->id)				\
 		(*sdt_probe_func)(sdt_##prov##_##mod##_##func##_##name->id,	\
-		    (uintptr_t) arg0, (uintptr_t) arg1, (uintptr_t) arg2,	\
-		    (uintptr_t) arg3, (uintptr_t) arg4);			\
+		    (uintptr_t) (arg0), (uintptr_t) (arg1), (uintptr_t) (arg2),	\
+		    (uintptr_t) (arg3), (uintptr_t) (arg4));			\
 } while (0)
 
 #define SDT_PROBE_ARGTYPE(prov, mod, func, name, num, type, xtype)		\