From 2f3dcbb5ef27edfee1d560395fda3c2c7fd5e5cd Mon Sep 17 00:00:00 2001 From: Navdeep Parhar Date: Tue, 7 Apr 2026 13:02:06 -0700 Subject: [PATCH] hwpmc: Fix compile warning .../sys/dev/hwpmc/hwpmc_mod.c:4640:1: warning: unused function 'pmc_is_multipart' [-Wunused-function] 4640 | pmc_is_multipart(struct pmc_sample *ps) | ^~~~~~~~~~~~~~~~ 1 warning generated. Reviewed by: mhorne Fixes: e51ef8ae490f - main - hwpmc: Initial support for AMD IBS Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D56296 --- sys/dev/hwpmc/hwpmc_mod.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c index 6133b52b516..9533cb81b4a 100644 --- a/sys/dev/hwpmc/hwpmc_mod.c +++ b/sys/dev/hwpmc/hwpmc_mod.c @@ -198,7 +198,6 @@ static int pmc_debugflags_sysctl_handler(SYSCTL_HANDLER_ARGS); static int pmc_debugflags_parse(char *newstr, char *fence); #endif -static bool pmc_is_multipart(struct pmc_sample *ps); static void pmc_multipart_add(struct pmc_sample *ps, int type, int length); static void pmc_multipart_copydata(struct pmc_sample *ps, @@ -4636,12 +4635,6 @@ pmc_post_callchain_callback(void) return; } -static bool -pmc_is_multipart(struct pmc_sample *ps) -{ - return ((ps->ps_flags & PMC_CC_F_MULTIPART) != 0); -} - static void pmc_multipart_add(struct pmc_sample *ps, int type, int length) {