Date: Thu, 09 Apr 2026 16:29:44 +0000 From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 2f3dcbb5ef27 - main - hwpmc: Fix compile warning Message-ID: <69d7d3f8.225c1.4371b609@gitrepo.freebsd.org>
index | next in thread | raw e-mail
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) {home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69d7d3f8.225c1.4371b609>
