From nobody Wed Jun 14 16:46:34 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QhBCG6nljz4dHlv; Wed, 14 Jun 2023 16:46:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QhBCG6K3Vz4P46; Wed, 14 Jun 2023 16:46:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686761194; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7LkQjfCZjyvKNbW22Ej9xFr7U9loGAsQw0xt7Fj8iow=; b=w18gq8lbhS/LFO5UdjGWc2FarJGMesooIrn2YuWn6NRy6Z4BlkVkIxORUcYaVTdV8ON71X B/tto39wINWqH9vbSIyQYfVQUjeYF38MtiNdY7r/dON+F2JIo97/s3aPyF+l/8IoGQlrXM 86Tof1kCzPblpy2IHzjNcq67kXPXAVKTOht8WQrRLBJJ+Cxl7xJmkwW+Nm1KkT8LJo36nN akyCbI7lO6OusylWX7Tl24mxwDk451jGJXCqDCqsUU0k+KP0FKy1W+QVdyJE7DFvLBoH6n eJS4eVw1GQvVNqAAO8nvDM2EggkwuJwjAbvCeVmg48bxFfy0eAogAf+HSpHzTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686761194; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7LkQjfCZjyvKNbW22Ej9xFr7U9loGAsQw0xt7Fj8iow=; b=wrZDWmy3dy7SoUIAMoWk38uFGCxL3GF0RUN9BNk6TIHTm3WOVhuZYRmt1XdiW3+8ODi1Yi e/qn3lTLlMNOPUvm1jHjyuUCn5AbvXrnZfr8lQ+6lCpiWZNi3NbZVNXPTGG39pIWaFyu/v JjMsc3I/k6wOn8t5T6rbOB1EYFBy4r/va7Co3pW6DPCWvL/Z7y7MheRxqEXMKR6M7Wq0+9 +sFqvYPaECsfZ36a8XxQGRo3vQeU9E+aa+eJMWsu7V5uWvKBbvWMecwXCkzvPzWnh9Bivp EpWWOly9yDJoidqBcHTsKd4vcPV2V8IuO+Oke59xxFsGkCqVOcT6na0CLyWdaQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686761194; a=rsa-sha256; cv=none; b=bIDWus28T7C+crPjYEVdlwy7szFTnIyn/gnw4j0Y56YKGcXSWh1KipDBvQHyYFo1uoyBXE k7KtvSPTcf4tBabXMfX268gOWuP8imhjg1mIGZdun8lbTO4cFR9R6cEUYD8wChKX2QHS8+ x37yiX0dDBzcYcMEYADx4e65/0kzM19zEzi+V24LsconXRsrE0HLBKMcrlAqYOqjK3dEDI 4nZ8V2GqKb19sadiIM7ebv7K9kOXH23gPPd4425OwX4McaG3bI0wOaLs/4BvQfpokaTAEN HsZ9YFfoS9QhqSWtSGcHS0PackFgYMajI+OizfOHJKWZR6OkKhQPxEgb9tt4xA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QhBCG5MtXz1BDQ; Wed, 14 Jun 2023 16:46:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35EGkYHY028274; Wed, 14 Jun 2023 16:46:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35EGkYCU028273; Wed, 14 Jun 2023 16:46:34 GMT (envelope-from git) Date: Wed, 14 Jun 2023 16:46:34 GMT Message-Id: <202306141646.35EGkYCU028273@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: 0589e7059bcd - main - hpwmc: add __pmcdbg_used annotation List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0589e7059bcd238027953d1311137512cc6dddea Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=0589e7059bcd238027953d1311137512cc6dddea commit 0589e7059bcd238027953d1311137512cc6dddea Author: Mitchell Horne AuthorDate: 2023-06-14 16:30:32 +0000 Commit: Mitchell Horne CommitDate: 2023-06-14 16:34:20 +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 --- sys/sys/pmc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/sys/pmc.h b/sys/sys/pmc.h index 54a00fed8ba4..cc8c4108aecc 100644 --- a/sys/sys/pmc.h +++ b/sys/sys/pmc.h @@ -1071,6 +1071,8 @@ extern struct pmc_driverstats pmc_stats; #if defined(HWPMC_DEBUG) #include +#define __pmcdbg_used /* unused variable annotation */ + /* debug flags, major flag groups */ struct pmc_debugflags { int pdb_CPU; @@ -1187,6 +1189,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)