git: 2f3dcbb5ef27 - main - hwpmc: Fix compile warning

From: Navdeep Parhar <np_at_FreeBSD.org>
Date: Thu, 09 Apr 2026 16:29:44 UTC
The branch main has been updated by np:

URL: https://cgit.FreeBSD.org/src/commit/?id=2f3dcbb5ef27edfee1d560395fda3c2c7fd5e5cd

commit 2f3dcbb5ef27edfee1d560395fda3c2c7fd5e5cd
Author:     Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2026-04-07 20:02:06 +0000
Commit:     Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2026-04-09 16:22:50 +0000

    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 6133b52b516f..9533cb81b4a1 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)
 {