aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-07-08 19:59:26 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-07-08 19:59:26 +0000
commit2596008a0bded7efe578d7de30e42b78d6ab8d0f (patch)
treef464f8fbf26fec0b43c8fed1dcf2ed4cd1c02f6e
parent5a50d52f112a86ebd0696da6564c7c7befa27f5d (diff)
downloadsrc-2596008a0bded7efe578d7de30e42b78d6ab8d0f.tar.gz
src-2596008a0bded7efe578d7de30e42b78d6ab8d0f.zip
amd64 pcpu.h: Add missing 'do' from do-while loop around __PCPU_SET.
Reported by: mjg Diagnosed by: jrtc27
-rw-r--r--sys/amd64/include/pcpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/include/pcpu.h b/sys/amd64/include/pcpu.h
index dc78a07b83e9..2a51413b0d5e 100644
--- a/sys/amd64/include/pcpu.h
+++ b/sys/amd64/include/pcpu.h
@@ -163,7 +163,7 @@ _Static_assert(sizeof(struct monitorbuf) == 128, "2x cache line");
/*
* Sets the value of the per-cpu variable name to value val.
*/
-#define __PCPU_SET(name, val) { \
+#define __PCPU_SET(name, val) do { \
static struct pcpu __seg_gs *__pc = 0; \
__pcpu_type(name) __val; \
\