git: 2596008a0bde - main - amd64 pcpu.h: Add missing 'do' from do-while loop around __PCPU_SET.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 08 Jul 2023 20:00:16 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=2596008a0bded7efe578d7de30e42b78d6ab8d0f commit 2596008a0bded7efe578d7de30e42b78d6ab8d0f Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2023-07-08 19:59:26 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-07-08 19:59:26 +0000 amd64 pcpu.h: Add missing 'do' from do-while loop around __PCPU_SET. Reported by: mjg Diagnosed by: jrtc27 --- sys/amd64/include/pcpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; \ \