From nobody Sun Feb 22 03:33:39 2026 X-Original-To: dev-commits-src-branches@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 4fJV2C2YFwz6SqgW for ; Sun, 22 Feb 2026 03:33:39 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fJV2C1bdyz3Kf3 for ; Sun, 22 Feb 2026 03:33:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771731219; 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=JCTks38/RSDxyXkt1SiuLBqpaUlPh3o6MD5o8BYKstc=; b=dFGzT/C64V7NCIFB4Y54BHsHhwHQd7Jy1DyQrdEzf333JhhINlZerxTK8IqhYJKzDTaW56 YwNW9DlTG7sUZelCLTsrvvdsLtgtcUlgX3DV4eyXzLIuHDa/5H3OQ+fnEp9irFgTnp5Jev /biRS3dMuoFn6v1W5K8nZAl2kECjytu3f3kfdHQHItJKWoLzUiTcvZ5spm38VPZ8uSAOL2 NU4LKcbOrMg+mFO/ZPC+isoQVVubpxtjEAVKw+dC1g1576cHfRhSftSyAAT379TSN1PeCU UO9zSaXl82X2wuS5wk/ZrlZnD/eE+UhSNJKqzwFZ4c9ibKIjwQ6bV0RcizhBbw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771731219; a=rsa-sha256; cv=none; b=jMqaHd6kXvlZd3cqRnJFK91UFV2CMXaCNRZKEX+0/eOgqA1Ki09iZ6DmVXOkIilJiILpG+ t1SCjilltNZPXeegmjUstp0+CRzu8W9ymdeUdTTR3AQXwFfDOV+SvQztobOIadUcgtGXg+ ReCKuxJzAns7XpRRlPQkB+d8hXj94iAATc8h0C2Brs05t0YWt6EypT4r1Xp/jfRgR8O4l/ 1ObTfIlDkL+91VVaNX+QuTTwdt+qbxvDaIAlpOVTtFAUrxn2vU3fb4FD7LTP3V6kYQ7fU7 Gu85FtwBP0hIoULjz7vjG1TrxCvjrkLjOH7yBGbj3ItxY4kNTNdq7rTk1A9L7A== 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=1771731219; 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=JCTks38/RSDxyXkt1SiuLBqpaUlPh3o6MD5o8BYKstc=; b=F/Sk8wkOGD0NGsmpqQi8OKAeNkBUzbtX7Pv+Fi9GtO25ex6bYYI3nWQ1wAkwUaxFVa8gD3 qiTEnPZ3X9ex481ciddanF/zYYB4TUoVi1Gwq2/OsCrO2jJPc6GbqpPjdfFD8jzikuuxlf FZZp3SGWLZ0g24tkmdRFSaRr2aVaYUHCCGsiWFPjTqMzJzedenaPY1ucFAjMiV+lrz8quu i/6Zupu9AbLDfYlBh2g1yVfn+D3QI8K2iNLyS6v7DzJmKLmIO646ZicnMUln4tFXS6uwpa T/koc79puAcK4uUtxuDWXmxlIbAUxAqHglAXjtrukRLQGhctOSgzKwOudf5ouQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fJV2C0w9ZzBjh for ; Sun, 22 Feb 2026 03:33:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 21d07 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 22 Feb 2026 03:33:39 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Enji Cooper Subject: git: 3b7db696d85a - stable/15 - libnetbsd: import the `__nothing` macro List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ngie X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 3b7db696d85a476b7735fecc7bf9a1d53d07ca02 Auto-Submitted: auto-generated Date: Sun, 22 Feb 2026 03:33:39 +0000 Message-Id: <699a7913.21d07.3fda1377@gitrepo.freebsd.org> The branch stable/15 has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=3b7db696d85a476b7735fecc7bf9a1d53d07ca02 commit 3b7db696d85a476b7735fecc7bf9a1d53d07ca02 Author: Enji Cooper AuthorDate: 2026-02-15 18:41:43 +0000 Commit: Enji Cooper CommitDate: 2026-02-22 03:33:28 +0000 libnetbsd: import the `__nothing` macro This macro is widely used in new NetBSD tests. Please see the comment next to the imported macro for more details on its use. Obtained from: NetBSD (c26cc77b3a0b2) MFC after: 1 week (cherry picked from commit faaeb6e62ae2f7371ac3ed37aae102f8e066a4b9) --- lib/libnetbsd/sys/cdefs.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/libnetbsd/sys/cdefs.h b/lib/libnetbsd/sys/cdefs.h index 8da812693961..fcc3cc6f15be 100644 --- a/lib/libnetbsd/sys/cdefs.h +++ b/lib/libnetbsd/sys/cdefs.h @@ -1,4 +1,3 @@ - /*- * SPDX-License-Identifier: BSD-3-Clause * @@ -81,4 +80,18 @@ #define __BITS(__m, __n) \ ((__BIT(MAX((__m), (__n)) + 1) - 1) ^ (__BIT(MIN((__m), (__n))) - 1)) +/* + * To be used when an empty body is required like: + * + * #ifdef DEBUG + * # define dprintf(a) printf(a) + * #else + * # define dprintf(a) __nothing + * #endif + * + * We use ((void)0) instead of do {} while (0) so that it + * works on , expressions. + */ +#define __nothing (/*LINTED*/(void)0) + #endif /* _LIBNETBSD_SYS_CDEFS_H_ */