Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 2023 16:46:34 GMT
From:      Mitchell Horne <mhorne@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0589e7059bcd - main - hpwmc: add __pmcdbg_used annotation
Message-ID:  <202306141646.35EGkYCU028273@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mhorne:

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

commit 0589e7059bcd238027953d1311137512cc6dddea
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2023-06-14 16:30:32 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2023-06-14 16:34:20 +0000

    hpwmc: add __pmcdbg_used annotation
    
    For variables which are only used in PMCDBG* macros.
    
    Reviewed by:    jkoshy, emaste
    MFC after:      2 weeks
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D40288
---
 sys/sys/pmc.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/sys/pmc.h b/sys/sys/pmc.h
index 54a00fed8ba4..cc8c4108aecc 100644
--- a/sys/sys/pmc.h
+++ b/sys/sys/pmc.h
@@ -1071,6 +1071,8 @@ extern struct pmc_driverstats pmc_stats;
 #if	defined(HWPMC_DEBUG)
 #include <sys/ktr.h>
 
+#define	__pmcdbg_used		/* unused variable annotation */
+
 /* debug flags, major flag groups */
 struct pmc_debugflags {
 	int	pdb_CPU;
@@ -1187,6 +1189,7 @@ extern struct pmc_debugflags pmc_debugflags;
 #define	PMC_DEBUG_MIN_CLO	       12 /* close */
 
 #else
+#define	__pmcdbg_used			__unused
 #define	PMCDBG0(M, N, L, F)		/* nothing */
 #define	PMCDBG1(M, N, L, F, p1)
 #define	PMCDBG2(M, N, L, F, p1, p2)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306141646.35EGkYCU028273>