diff options
| author | Navdeep Parhar <np@FreeBSD.org> | 2026-04-07 20:02:06 +0000 |
|---|---|---|
| committer | Navdeep Parhar <np@FreeBSD.org> | 2026-04-09 16:22:50 +0000 |
| commit | 2f3dcbb5ef27edfee1d560395fda3c2c7fd5e5cd (patch) | |
| tree | dc2ef15352080a7661c16e088a69808ee3343225 | |
| parent | f9160912415eef078c32317e02695bc0cc775d39 (diff) | |
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
| -rw-r--r-- | sys/dev/hwpmc/hwpmc_mod.c | 7 |
1 files changed, 0 insertions, 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) { |
