git: 35128d197dff - stable/13 - hpwmc: add __pmcdbg_used annotation
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 17 Jul 2023 16:49:37 UTC
The branch stable/13 has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=35128d197dff2949553f4d321b052024decab6aa
commit 35128d197dff2949553f4d321b052024decab6aa
Author: Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2023-06-14 16:30:32 +0000
Commit: Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2023-07-17 16:45:38 +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
(cherry picked from commit 0589e7059bcd238027953d1311137512cc6dddea)
---
sys/sys/pmc.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys/sys/pmc.h b/sys/sys/pmc.h
index 2384a3a13919..12583e67b062 100644
--- a/sys/sys/pmc.h
+++ b/sys/sys/pmc.h
@@ -1078,6 +1078,8 @@ extern struct pmc_driverstats pmc_stats;
#include <sys/ktr.h>
+#define __pmcdbg_used /* unused variable annotation */
+
/* debug flags, major flag groups */
struct pmc_debugflags {
int pdb_CPU;
@@ -1194,6 +1196,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)