git: 58d39b1b7093 - stable/13 - bhyve: Disable thread safety analysis

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Thu, 15 Dec 2022 19:59:43 UTC
The branch stable/13 has been updated by markj:

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

commit 58d39b1b7093ec84feb50996d565305bed700c39
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-11-18 19:04:19 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-12-15 19:58:43 +0000

    bhyve: Disable thread safety analysis
    
    The warnings that arise are bogus and have to be muted with
    __no_lock_analysis in most cases.  As a step towards enabling the
    default warning level for bhyve, just disable them.
    
    Reviewed by:    corvink, jhb
    MFC after:      2 weeks
    Differential Revision:  https://reviews.freebsd.org/D37295
    
    (cherry picked from commit 1a8e52391be837bb2851065b4bad6c163db9edef)
---
 usr.sbin/bhyve/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/usr.sbin/bhyve/Makefile b/usr.sbin/bhyve/Makefile
index f629ee8f6b79..5147bb6b71d9 100644
--- a/usr.sbin/bhyve/Makefile
+++ b/usr.sbin/bhyve/Makefile
@@ -133,5 +133,10 @@ CFLAGS+=-DGDB_LOG
 
 WARNS?=	2
 
+# Disable thread safety analysis since it only finds very simple bugs and
+# yields many false positives.
+NO_WTHREAD_SAFETY=
+
 SUBDIR=	kbdlayout
+
 .include <bsd.prog.mk>