From nobody Fri Mar 29 18:11:43 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 4V5pQ80lFBz5FNY1; Fri, 29 Mar 2024 18:11:44 +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 4V5pQ80Jg1z4gsk; Fri, 29 Mar 2024 18:11:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711735904; 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=GAIoG5kILoYXH6LzMzM08S7Whjglu2pkVh8aimz5Uyg=; b=mMrage3jwkY3kwTscyK4yAw0avtOxgPgpsSrltU4nPq5Q4hm3gdVx42oWGeOpicgnrcLQi idwE3RH3PeuMZ5FAPTAhMSW4A8Fu59V2XKJTB+DJif4ssYDV2bY9QriaALvBoUMKcl6oF/ UjibCoaGyxTuUrrwWWFFrg8wDDDemwqODKcOpPg55/BHbnR+YaWa78lTaZ3BHJ/aeVTIMQ MsC5WxGQRaqZp/6nPQxPZVyiWs3ufzAiaN5rqwPxvlTg9v6yt+y3qinvagx59A7A8qUmMh j5fGvjWnZAXN16Fl6oudMv2np2uGT+Syy06wlt/dE4gL7JNFdnHXsDS/r6irdw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711735904; a=rsa-sha256; cv=none; b=mCNZJZaDl+xy3Fb+JGY4s/lWD5u2KwoMSFTZ9XcnZNpPNgAXkjAIGMbL/uberRgvw3kulC T6dgUZ6TsipJHDWDoWQ+zwf+5xhaBcbpgJY8K/jmtVWs3pxvUljxwoxfnUd3guh2oRM5eu K8nD7IU9FrAfbOop1IuMPZMhplnL5fJwzXeuJc69iAaS3yQD5uG1syJKWTmx/v4kL3Em8a 7rBl4Gj4906fUqAXlIxm28qNicID3FGg6G9uRUT+kX26WJph9VmiNVw+3A2pYRGyf3SVbO JZx/FqIi656LHH3D+F1GimhLHBy/QfkFmNcAlxAORetYTNQ0Zhq0nfuvtuJiWg== 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=1711735904; 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=GAIoG5kILoYXH6LzMzM08S7Whjglu2pkVh8aimz5Uyg=; b=tYKbYpsv1h2CANa5tQitFWcc67/0ckqESTASmgnOlZxbkjx+3FgO1ULIwBHl08zNLGgRSc /2GUlTaXztTw4LpjZ8vwRRIBof92CBb4QjrKyvjy9O3UjXBwEqFjC2qxtxiWUHqIIErvrM tvPrzZeoU3mV7RX1qfy2BN2QJRn9Bd+Xg3PR/IMW2d/IwcEI0+g4kjllwGNK5WojMK+Awu nRnkvYIS6W0HRcTEB8Bl9ezFn29E5KyCCRBq6mQwDxl8e6fhkGDrt3djZ2DHbcjzgtfnIT 3LgF9HF4X3+WstGjFR+2xZ7IhKUsiQwUjmYz7+o9xHmLXb1XDfru8MQsHAfcXw== 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 4V5pQ7703lzLXx; Fri, 29 Mar 2024 18:11:43 +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 42TIBh6G077927; Fri, 29 Mar 2024 18:11:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42TIBhLv077924; Fri, 29 Mar 2024 18:11:43 GMT (envelope-from git) Date: Fri, 29 Mar 2024 18:11:43 GMT Message-Id: <202403291811.42TIBhLv077924@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: ad9aa0685925 - stable/14 - 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/stable/14 X-Git-Reftype: branch X-Git-Commit: ad9aa0685925a1297fc7683e2a178dec419fe3e6 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=ad9aa0685925a1297fc7683e2a178dec419fe3e6 commit ad9aa0685925a1297fc7683e2a178dec419fe3e6 Author: Mark Johnston AuthorDate: 2024-03-09 05:08:43 +0000 Commit: Mark Johnston CommitDate: 2024-03-29 13:53:04 +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 (cherry picked from commit cce4979133ba540ca2dfd57631c6f91673b9bafd) --- sys/sys/ktrace.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/sys/ktrace.h b/sys/sys/ktrace.h index 110e14698570..594f912b02ef 100644 --- a/sys/sys/ktrace.h +++ b/sys/sys/ktrace.h @@ -336,8 +336,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