From nobody Sat Mar 09 05:40:08 2024 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 4TsBh854ZZz5Cvv0; Sat, 9 Mar 2024 05:40:08 +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 4TsBh84TDpz4vJg; Sat, 9 Mar 2024 05:40:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709962808; 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=7d+d66M7oUryq016dACZYXENql61fbn86+fzFyRdemQ=; b=YgomLsjanftn7RdRL+tCKmpcMJZPCdApi1dAU7ibEnoDc7xlEJOmvp65rkKuZtRprezsJ1 8JnvBM5O4F4nbUxzeAtbUOG2/SVyrDRPRa5eA/QGpCbjR4Vy1AkIyxiOCFS1oqmBf3fmEW rBOI2yhhP+GcZJC4Ct0bFcF5M39ncZ8r7a9UhwNMRo1PyhvB0YnEgzgmT5Kp/uVgc+8TQa eml5n7VMEZCu/bgoxAr0/bKw4pAOCQktHQR6WBQt/nKsjAcDd3EAAZbgI3abwCHVE/tNv7 KrQ8/8Xb9UewfFyZqO5h595W9cZenJjFzKYaTX7LWbnIS1EBG7U72ZeE0ztpeg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709962808; a=rsa-sha256; cv=none; b=tL2fLXqkGA+GBk7WcYXpzWmhyZE464etXt4cV2sw5isx0W3ROE8yo8efFAcu31K6XZiR5D VLHast5eHxGzxHgE5+kPZ/aFsrcgfBQH9+G/M53Dn4aFFJ6ccasSPwSJglHOzrnZsDj8Z8 ixYKIUo6qkSQlntRqZLxQH0rCyRxLOZ5Vv0qCjtrHGCehmh2wrEHM1KTmtwd5PVzLWNt97 uINoKFeIu0DS0xeB0fFxOATCN0yAsgkFYeWqJNxw+vy4q79DmgrNkxriqjkqxqQAAjyQ4S r8LUi/Wm613wFwLTd9DKCXHSPDRaTBwE7zVdZIAEr95HgemxvWuaRqbYvr1cSw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709962808; 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=7d+d66M7oUryq016dACZYXENql61fbn86+fzFyRdemQ=; b=WyiSvn5EvjOMEBuluCIhoh4i3b0+iIZ68Ne6zKFWrTsCBcWbuK80Kk/jvDQd2fXsYqWIaF pS2a0ZTfNhSo8ij6KFHBLjoULpT31pEbBrM2r1blblzdULl4OkvOcEHxwtNCLIR4+MgX+o tOTOxpDv8BzdVHS1ZSxoU35d3uQrHJQ5lbywHvIXPvxWEUtGd6lQP/q09ny4SZU0YKxNg3 JR85mVqKC6K1Tt6wSJKVqziDkfDZ0RH6v446gYCn6s+SeUrMf/BzM8pBKbzN/BZhK2PQfJ +PCbQAgX+ksqQ+Wx6+WqmIsu4wS9wS41Lz2IlVtn9L6nWUkv18y2wekdUji/Og== 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 4TsBh83rr8zqJl; Sat, 9 Mar 2024 05:40:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 4295e8ic026950; Sat, 9 Mar 2024 05:40:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4295e8I3026945; Sat, 9 Mar 2024 05:40:08 GMT (envelope-from git) Date: Sat, 9 Mar 2024 05:40:08 GMT Message-Id: <202403090540.4295e8I3026945@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: cce4979133ba - main - ktrace: Add __ktrace_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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cce4979133ba540ca2dfd57631c6f91673b9bafd Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=cce4979133ba540ca2dfd57631c6f91673b9bafd commit cce4979133ba540ca2dfd57631c6f91673b9bafd Author: Mark Johnston AuthorDate: 2024-03-09 05:08:43 +0000 Commit: Mark Johnston CommitDate: 2024-03-09 05:33:55 +0000 ktrace: Add __ktrace_used This suppresses warnings about write-only variables when the KTRACE option is disabled, akin __diagused and __witness_used. MFC after: 1 week --- sys/sys/ktrace.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/sys/ktrace.h b/sys/sys/ktrace.h index 251efa1e48db..710c78c2604d 100644 --- a/sys/sys/ktrace.h +++ b/sys/sys/ktrace.h @@ -334,8 +334,10 @@ void ktrcapfail(enum ktr_cap_fail_type, const cap_rights_t *, extern u_int ktr_geniosize; #ifdef KTRACE extern int ktr_filesize_limit_signal; +#define __ktrace_used #else #define ktr_filesize_limit_signal 0 +#define __ktrace_used __unused #endif #else