From nobody Sun Feb 15 18:44:14 2026 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 4fDZZC4bB3z6S45y for ; Sun, 15 Feb 2026 18:44:19 +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 4fDZZC3wpkz3xQp for ; Sun, 15 Feb 2026 18:44:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771181059; 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=mq0o7iMlY3hno9zEHNU/sIuqeDW1el0+G2aBUpjAELCWR8bIMHqHppUnAlpE2v2XlS4oU7 XAoJ39qh52uAHsHHeb3gIrgysneEN4DcFAdx/vj9PPfeW5wMvSEE16B9KCjI1Lc7eSAkOs N+DN5/ao6WHBgAJENhwZ5fC+KPUkq9zi6Xri27UMYjHh8fNJTwy3twYAFpDh+as0nzuZfT rijfEmJn086BZ3f7Gdf55wVmqb+yQZhWuzQ5nv8o0aC6RQj2ZxA/PGaRmWaBM86LEhxOPx zcabuEYgaDibPozc6k9iGwCdP19IpAKxPdCK3WY7oerRKW+JKT3pe5MZHaPaXA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771181059; a=rsa-sha256; cv=none; b=PmcS4tftz5BYDQSSvaBvpS6szYcQveXI7YKvMNVQVs6jm3WkNOjITraLBNBczy9No5JlzN pHZ+diDWGwtjlWFOD2lhrt617+Wcig71J9WEx2luBa8pa+A5cHxOIQwkCtb6oASHuibPg0 zx3IPFIU4UEH/AO/rnVqcJVvkYBC0ubzzTDMrJpwQsEWJorFa08wRonzHF40gkxIGVQTBs qETXQBKiglKAsvq1rH4tRgbUwQoKUfOdoWyy3l1QQtzikgpbRshyL2pNbsDWVJyZOqI6Wq zBFD+6QX5EXyckGyN6dv+VHVh/I02TCrzcTjkqfyRaSvWTuraQQ7MFymLQZ+IA== 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=1771181059; 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=QC5fU1pAPeJViqALhd69zA7v4+7Ie6c6T7mdWBTHKdMAmCCgxbBnMpzS5S+dHwJoEYw+8Q L1de9NNakGsmkyPQaHFpDt0eN99Szcd5iJ+Lc0ULYVJ/T8lfchFPw2OdBIOg23d77OmMp6 0Of1fqGbuDNQX/+qLwZaUzd4g5+1LZbRbhBUYBFQrdQhwm3R7qt7FisdBjnTVWJtx0e09n RZaliiDyY5Q9sm9dx69/iI9hvzJ7c9jBn02k94FLUGCvejnt/tQXJsH1FljdNrJolHLoWu SEE9plaTSc1ShzCvkkXf34rTP0en1r1p4ZyAuqMG4+aqT9zcXnRzgHPfFpczvA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fDZZC3K6pz155c for ; Sun, 15 Feb 2026 18:44:19 +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 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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_ */