aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/pcpu.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/sys/pcpu.h b/sys/sys/pcpu.h
index a563ae7374c0..42f9ca0122d5 100644
--- a/sys/sys/pcpu.h
+++ b/sys/sys/pcpu.h
@@ -112,7 +112,7 @@ extern uintptr_t dpcpu_off[];
#define DPCPU_SUM(n) __extension__ \
({ \
u_int _i; \
- __typeof(DPCPU_PTR(n)) sum; \
+ __typeof(*DPCPU_PTR(n)) sum; \
\
sum = 0; \
CPU_FOREACH(_i) { \
@@ -137,8 +137,7 @@ extern uintptr_t dpcpu_off[];
u_int _i; \
\
CPU_FOREACH(_i) { \
- bzero(DPCPU_ID_PTR(_i, n), \
- sizeof(__typeof(DPCPU_PTR(n)))); \
+ bzero(DPCPU_ID_PTR(_i, n), sizeof(*DPCPU_PTR(n))); \
} \
} while(0)