The branch main has been updated by mhorne:

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

commit 0589e7059bcd238027953d1311137512cc6dddea
Author:     Mitchell Horne <[email protected]>
AuthorDate: 2023-06-14 16:30:32 +0000
Commit:     Mitchell Horne <[email protected]>
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)

Reply via email to