git: f33168351b38 - main - Properly define EPOCH(9) function macro.

Hans Petter Selasky hselasky at FreeBSD.org
Fri May 21 09:25:35 UTC 2021


The branch main has been updated by hselasky:

URL: https://cgit.FreeBSD.org/src/commit/?id=f33168351b3804664f5e82a409d9f956df2802f3

commit f33168351b3804664f5e82a409d9f956df2802f3
Author:     Hans Petter Selasky <hselasky at FreeBSD.org>
AuthorDate: 2021-05-21 08:22:13 +0000
Commit:     Hans Petter Selasky <hselasky at FreeBSD.org>
CommitDate: 2021-05-21 09:21:32 +0000

    Properly define EPOCH(9) function macro.
    
    No functional change intended.
    
    MFC after:      1 week
    Sponsored by:   Mellanox Technologies // NVIDIA Networking
---
 sys/kern/subr_epoch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/subr_epoch.c b/sys/kern/subr_epoch.c
index 210cf78d55f0..c5e4b78d8b79 100644
--- a/sys/kern/subr_epoch.c
+++ b/sys/kern/subr_epoch.c
@@ -870,7 +870,7 @@ epoch_assert_nocpu(epoch_t epoch, struct thread *td)
 	}
 }
 #else
-#define	epoch_assert_nocpu(e, td)
+#define	epoch_assert_nocpu(e, td) do {} while (0)
 #endif
 
 int


More information about the dev-commits-src-main mailing list