From nobody Mon Apr 10 17:44:02 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 4PwGYb0W3Lz44XJd; Mon, 10 Apr 2023 17:44:03 +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 4PwGYZ2R9Wz3Hrx; Mon, 10 Apr 2023 17:44:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681148642; 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=/oWut6x0I26yLbEp8sp0qh6p3G8psJc+75HUPHKoPHc=; b=RmspQiEW1BQdnakpwbi3ptMf9P4Zpd8XxB0XlHPdBcNcdzV5/wkRWM2VA679VmIieoOPn2 WBCCTHyiVuNf22BfCaGyOsv66Tw8KEhUOcTvo11ozDi61eVQVji84iv9TIf5xh0QjWgYZH mM3qvzOIY+s+OWwIdcWrBXwj0WXliiIREosFAckPO2sJTeudM2NiRdmDzp8bK+PSuajzv2 0RGov6RfHCVoIyA7OIOUZoNgFSgRSm+tu5HKo3rf22weIi07PGY23V4CxIQ4q71178/vtj 6jEbN/bON9widraelaMbO/Zkz2xWjIyVQHeFRDzSxl9TBPlTIBdsaR3l7UWIQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681148642; 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=/oWut6x0I26yLbEp8sp0qh6p3G8psJc+75HUPHKoPHc=; b=rIyjs6Xmo/+H8rWR3GJmN64aZ125FC7mrPNV/Dow3xhGpQCM8fcpEN5RdEpRgbWSQa/e1t EnDW697MfY0G4zPk9l5gTSFv5JJZNKjBFzdpvH7gJh7ej667CxSeC6MG2/dNnzeQTh3PQh qcme81K9ytT61vMtl3cQ4we0F+2vwMSR3EMEU8dHWzlgGq7p99u5F0c+TcGFmgOCGI3hTL uCqrwFuAxxNKHegDRGh64gtpynSXzZ/9+cGFzttIqGZH+XyadUm4RMmMVyOs1HdERj85a1 MSODs2CFiRBpqTi/TfyOHqb4y7X/t6UW/2ekLejHpUTSFgl0rc6ydiqLxBY9yw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681148642; a=rsa-sha256; cv=none; b=hwoKtSCedBPeRpZwaUM27+z67yBuwVwXPEMVC9u3VP0szko/3pB5OtJN+a/pZViyBZkFPn 3t5nfXeIhYNfsM/0kUsLVEF5Q2prjE1B19+5zLrrz984fLtPBlGgsYRIZcjiYGdSFyj15Q b+jDgs2Iz7X8x1FtgyAUlSVq52uuDF95PfFCW5JPilFP4YloRWXIxcxay1Q6GdUMuFEjOO hYNoEE1IDgaxqdeX5YgOynqopgv5WCgT01gK6+XpanHrjAUiI69J0zfnbtwQzVyLX45hcW sjH7WP6gJcVjwPo6zmUknrYIOaS4QcecQXqRFHuf22yGdlOvJAbJ8Zq51xhfxw== 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 4PwGYZ1Vy6z10TL; Mon, 10 Apr 2023 17:44:02 +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 33AHi2D6073886; Mon, 10 Apr 2023 17:44:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33AHi2bS073885; Mon, 10 Apr 2023 17:44:02 GMT (envelope-from git) Date: Mon, 10 Apr 2023 17:44:02 GMT Message-Id: <202304101744.33AHi2bS073885@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 8e9db62e7423 - main - zfs: Appease set by unused warnings for spl_fstrans_*mark stubs. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8e9db62e7423eed795291ac88622fbed018b6abd Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=8e9db62e7423eed795291ac88622fbed018b6abd commit 8e9db62e7423eed795291ac88622fbed018b6abd Author: John Baldwin AuthorDate: 2023-04-10 17:36:14 +0000 Commit: John Baldwin CommitDate: 2023-04-10 17:36:14 +0000 zfs: Appease set by unused warnings for spl_fstrans_*mark stubs. Use a void cast to mark the cookie value as used in spl_fstrans_unmark. Reported by: GCC Differential Revision: https://reviews.freebsd.org/D39357 --- sys/contrib/openzfs/include/os/freebsd/zfs/sys/zfs_context_os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/contrib/openzfs/include/os/freebsd/zfs/sys/zfs_context_os.h b/sys/contrib/openzfs/include/os/freebsd/zfs/sys/zfs_context_os.h index 1ce72330412c..457fa3af8142 100644 --- a/sys/contrib/openzfs/include/os/freebsd/zfs/sys/zfs_context_os.h +++ b/sys/contrib/openzfs/include/os/freebsd/zfs/sys/zfs_context_os.h @@ -78,7 +78,7 @@ extern int hz; extern int tick; typedef int fstrans_cookie_t; #define spl_fstrans_mark() (0) -#define spl_fstrans_unmark(x) (x = 0) +#define spl_fstrans_unmark(x) ((void)x) #define signal_pending(x) SIGPENDING(x) #define current curthread #define thread_join(x)