From nobody Tue Feb 21 13:50:34 2023 X-Original-To: dev-commits-src-all@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 4PLgfL60MXz3sgGv; Tue, 21 Feb 2023 13:50: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 4PLgfL5N4tz4LKG; Tue, 21 Feb 2023 13:50:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676987434; 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=MJTUPZ9hGOZGqLUCfhc83OERtjMeL+Hsq4N7jhu+S9Q=; b=ibpwIUoryhfkwG56FuMkS5+5/lvoyp+P++vRbXsBVYbkv4N0rEyS2LpGu/E8YykS133dq5 qA6X8ZOxP6vTQaCkSlvuHf4v8yoluWTrC9Z8t+jl/DPPeAtIwesV/nILuPDmi5gMvZq6rZ R+PnYHW0sTFjPpgP2zS2dCacv/ze7i7iXNILrIa3uCzA3sD9xvD/m5Ad6dZMoP/Z13IrJC e6qDvQn/TV5+/4KRqSMJIFWg2XWh9itq9+QttMW7/jvV1EQio7dUE94krFiko4sx8Qtv9s W3nRiM2ClPEXBTMYtEt3SBqQQ193wbZPb7PkXfmVD9gdw/03XsXowgs0xJhG0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676987434; 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=MJTUPZ9hGOZGqLUCfhc83OERtjMeL+Hsq4N7jhu+S9Q=; b=pqeGQOPFMSsY63Uu1QcNOW+/wLkGDvT/Q6xTqpw0/K7cPV9xx+5Tj3EYyOZYQwod5w3AWA zGAN+1nn8f2injO/8WCGmsoEvzbEQgxhcgia2HnDFekWIJqwfusGQFYXgNLIA7YuwYUG9y g5kMeWjCTJrnHZbkwoiiVdV0D6ML1Ug3TvRhG8yYZuaG6680ao0AykPcKrX0+dbsqjU5Lp SnSa3LjlcPw25GzMeEi27uj3ULgU2lhkGEdtVXoCINj6PHanv+4c0/vck3OImHkUxtPrhs 2bMwn5MKRGmURKInzYLF8k8eqTpWd3VyJerZ3PHmys0u+rv0xKl7O+caekVxCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676987434; a=rsa-sha256; cv=none; b=kl/Lt0vG9VgEDT9B/TkADH9pSObLA/PG3qNQ4W6XGO/GJWE7ShX688ffKdfvf2Seb2i2Ab bHjPsXQcMMdnRJg4TJPggRCuM0NbifMaIkPAMGfJ7CIPaJRUxs/trlk23YAu4CWo8EaQ6C iwY8O1hVNvDGtSR7XUeysHycqZ/fiL8zFf7uMRTgkIiwIb78bmYsa5vrE1xQHrrmaaBj87 H1vgZhrTw5MqpnIi1FB/UHIVczK6C5rV+zGCv8Qvf5NBMnwpv5lg1uLDsGtIOcjr7rLyO3 Oeeo0a6jI8oCj4qGRtbtjRxBS6X+/QEOcZLvhe8fSv7ytX6dZ3+R169FOTI9pw== 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 4PLgfL4QmFzNHG; Tue, 21 Feb 2023 13:50: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 31LDoYbK001989; Tue, 21 Feb 2023 13:50:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31LDoYFo001988; Tue, 21 Feb 2023 13:50:34 GMT (envelope-from git) Date: Tue, 21 Feb 2023 13:50:34 GMT Message-Id: <202302211350.31LDoYFo001988@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: 7f337c94b5dd - main - sdt: add __sdt_used List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7f337c94b5dd4b2848e5d5e32c2fc99b9d5ca515 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=7f337c94b5dd4b2848e5d5e32c2fc99b9d5ca515 commit 7f337c94b5dd4b2848e5d5e32c2fc99b9d5ca515 Author: Mateusz Guzik AuthorDate: 2023-02-21 13:43:00 +0000 Commit: Mateusz Guzik CommitDate: 2023-02-21 13:43:00 +0000 sdt: add __sdt_used To pacify set-but-not-used warns when compiling without sdt probes. Reviewed by: Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: --- sys/sys/sdt.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/sys/sdt.h b/sys/sys/sdt.h index fb5c3d671604..2407ef88ab56 100644 --- a/sys/sys/sdt.h +++ b/sys/sys/sdt.h @@ -86,6 +86,8 @@ extern volatile bool sdt_probes_enabled; #ifndef KDTRACE_HOOKS +#define __sdt_used __unused + #define SDT_PROVIDER_DEFINE(prov) #define SDT_PROVIDER_DECLARE(prov) #define SDT_PROBE_DEFINE(prov, mod, func, name) @@ -141,6 +143,8 @@ extern volatile bool sdt_probes_enabled; #else +#define __sdt_used + SET_DECLARE(sdt_providers_set, struct sdt_provider); SET_DECLARE(sdt_probes_set, struct sdt_probe); SET_DECLARE(sdt_argtypes_set, struct sdt_argtype);