From nobody Sun Feb 22 03:34:15 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 4fJV2v6W0Nz6SqdG for ; Sun, 22 Feb 2026 03:34:15 +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 4fJV2v5sMwz3KmP for ; Sun, 22 Feb 2026 03:34:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771731255; 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=/VQwP6en3DbVEcFwVsQsxnJ227KB7XCBpbgQFEJwiu8=; b=nnUUMlh4bCTg/ipKKt0S5B4kQEt5iqq0tLNqW344tLtDQ3wvTztk76VYCTE1SpxKeghSUL XZyxNLv9XrgGM9NxnbyhAbJ4AOmx3PNwJFk/pq186RVmeqipkAM9clPF1WzxE5kgYa9t5+ fCXcJeJ4/Xae4t0MaI1/Hf2VH8J2tbKYPCe7ztQXyZOmVXPNgubQgq/MnsFkP3zbKPe5qb adXwbFhrGBghkiSNJ2CrUFD8bnj9fJXAXq7JzNGx65yCTfnmwN4XI6hPFTb0KApbsAfS+0 bcQPjbU1FrSxkWwmceeGWqI8aiECfsNE16Q0kGxyyTbnNj7ZXoqm4SlYX3FvLQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771731255; a=rsa-sha256; cv=none; b=p+LkK2iFN01AcA/V8kyzK4EuzQyX5LGW9PcFsctoJ7cm7WnFAE+nRJ6yTriFjVYNa+19b7 /3sGjZxXjw7Fzq6mbcEq3uxIB1BlwTUlPM+mMhUyKKhRyo9Upfy7e4IgEojGIcsWUpAC77 9riKIE6YqgCIDk1Pamk6z4D3R0AiFq0RnL9CtQWI+0vQ+JwMnuWRET4oZh0coKypy9Qc+a 1kG+yGGIuWKf4HK1HORh9OuvXLt5AfLqoCgUJSB7IZekjUEZbouVeFdnYhfWv0Xd4yqnxv lgI2JVDQ7IvG15XRxlC6DV+KtsjbQjM+0fch/mZQqq2IKacimSkRqRC9wzjg6Q== 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=1771731255; 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=/VQwP6en3DbVEcFwVsQsxnJ227KB7XCBpbgQFEJwiu8=; b=C0glHQNGq56CnpFaN8GUXJ6QJphPZOXrB0zFbdluUosxQFSLbqE0LD5pchWPPAiKILwHQ/ WsZQr6Bk7gscYactdPqdKiprlkMLIa52UYG8piuPDxPqmn/V+M4/3giReyRIprpR1CzdWb 3L48wfGP5Dt6Hh82ATo/9jtyW+xoqmdGRdJGV372bUaxU+olrxlDYW4PHhZ9WVXRvYB+Oz 2cyAGYFwJaRBCiuFJUZWy0GFOPcO+q0RQpO1/VIctqfhkC3XZrWNDKJFcIzDhmo4ThaK/J 7v12EsoRqzm8+p5bEvcGUpOYo//qc4zDqgMeHUUYcMY7m3M8qPskFLDxJoTpzg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fJV2v5SZyzBvj for ; Sun, 22 Feb 2026 03:34:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1fc41 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 22 Feb 2026 03:34:15 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Enji Cooper Subject: git: 175920c9d0f7 - stable/14 - 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 175920c9d0f71bf9b7beb4854836e340c0c563da Auto-Submitted: auto-generated Date: Sun, 22 Feb 2026 03:34:15 +0000 Message-Id: <699a7937.1fc41.506f3af6@gitrepo.freebsd.org> The branch stable/14 has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=175920c9d0f71bf9b7beb4854836e340c0c563da commit 175920c9d0f71bf9b7beb4854836e340c0c563da Author: Enji Cooper AuthorDate: 2026-02-15 18:41:43 +0000 Commit: Enji Cooper CommitDate: 2026-02-22 03:34:11 +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_ */