From nobody Sun Feb 15 18:44:14 2026 X-Original-To: dev-commits-src-main@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 4fDZZ64RlTz6S48W for ; Sun, 15 Feb 2026 18:44:14 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fDZZ63tvpz3xbf for ; Sun, 15 Feb 2026 18:44:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771181054; 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=3Szi/36SzoHyWDea3LZ68YECc9yKsijiklOy4AFWSPs=; b=ylautGvJl1COQUYdFhcHsNTVFcuoPxcekpYkUcQSKsIx2gWVMHeIkkW8WSUDhCBM1P3SUl Z698q8uqguyiQySM5mJUQnmMZpSGaembWtXhx9sVqS997hLvg4uCN7LLxSkkEnIsh3X0wh zhbkL2tcEq3fImiewizWLFaX9Th5xM/Rjk2JpTEVDSJ310y6aRw/JStPfT6jKOp3GHPfuE vQQyo+J++Yxcs8hllhLZp5ngAydD97HxwOPldatHOuY2ZRwzRJGH1Zvt1KptQ4A4mZJwS3 0kI4H/IaOBOpitxWEA6EXI17xJLbpvuMnTGTNKq7qsX2wYl2OxbXwRH4P8cgEQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771181054; a=rsa-sha256; cv=none; b=lYb4oExV1Dor1uPW6mwNZQXhjzptwJE/h0+gHVz8k23qf+shpiG6Ic3lRGQzsaReO+Oau/ 2984e6FTBPAEuD8KyMRqSpjrghrRy5fu9l5f3ouwP/UEvW79v3mt6oCG+PmgEJgfSLnTqX a6l7NH8z39t5AJIAYCGiY9V3rav/orsJ19yAb5JJTPncN7IoQ1CQjAuUhIj2I2KUP0zmSP hEX8ThW3asNU63+Ly6O+fgbzY2dkkW0qTbd2aJ/tn5GE+/1DbFNYN/dI346iCS+WyUsR/A rdcvckIeZ28J06ybRgHVI5A9QbU/4q6JrH62ebBbpA/cTwJ4TEaJ7Lh/BokvPg== 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=1771181054; 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=3Szi/36SzoHyWDea3LZ68YECc9yKsijiklOy4AFWSPs=; b=aMxYewo+2fRAYtp0qa/shmSOh2hMbQOgfivE9cianEnWAtgrf+rd2YMSId6WpuUKN7Daa7 jLLHvTcl7dOjQcEqIO75XeU2Ph35bPlP5IiKfA7rpLlBJMyvahV5bUeeAsR5zj4+ADzXbf CM5jYWtqhPbVDwxbuyQC5+YRrpIhDsHWq50e4rPoTX6C3vJG1K9Bz1zFDqNaXpVM9ILtDp ugLd7VmPpiyejdTR/9glBnmbq1HTJGs4Pk2Orgt9IJkIVT36tHizUR/CkyOSSLQxut3WEF dEPI8yIGi/l4f9Vt44k1KqnClvCP3g7RlYQLQ17dR6ZWKYQUBTp36DRCE1x8fw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fDZZ63KKQz155Z for ; Sun, 15 Feb 2026 18:44:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 398ea by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 15 Feb 2026 18:44:14 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Enji Cooper Subject: git: faaeb6e62ae2 - main - libnetbsd: import the `__nothing` macro List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: faaeb6e62ae2f7371ac3ed37aae102f8e066a4b9 Auto-Submitted: auto-generated Date: Sun, 15 Feb 2026 18:44:14 +0000 Message-Id: <699213fe.398ea.ed3f170@gitrepo.freebsd.org> The branch main has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=faaeb6e62ae2f7371ac3ed37aae102f8e066a4b9 commit faaeb6e62ae2f7371ac3ed37aae102f8e066a4b9 Author: Enji Cooper AuthorDate: 2026-02-15 18:41:43 +0000 Commit: Enji Cooper CommitDate: 2026-02-15 18:43:00 +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 --- 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_ */