Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys <sys/queue.h> for TAILQ_*. Parenthesize macro argum...



details:   https://anonhg.NetBSD.org/src/rev/41193e74ff62
branches:  trunk
changeset: 365620:41193e74ff62
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Aug 24 16:37:19 2018 +0000

description:
<sys/queue.h> for TAILQ_*.  Parenthesize macro arguments.

diffstat:

 sys/sys/sdt.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r b3c0ba3dd815 -r 41193e74ff62 sys/sys/sdt.h
--- a/sys/sys/sdt.h     Fri Aug 24 16:01:57 2018 +0000
+++ b/sys/sys/sdt.h     Fri Aug 24 16:37:19 2018 +0000
@@ -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)             \



Home | Main Index | Thread Index | Old Index