From nobody Wed Sep 09 20:01:17 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 4hgBX33N0xz6rJc6 for ; Wed, 09 Sep 2026 20:01:23 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hgBX31pngz3FLQ for ; Wed, 09 Sep 2026 20:01:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1788984083; 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=fv6gpGiB5CdcXQFvdYQycw7mE+GuaeicGDIh+6kPo/0=; b=FsiGepTQGit1ExrYfJwFDEwlywMI6v2GKAJto50JcKLXrKICkldDctPrvnsWvOom6gXFN3 AILhFRhaezLqCKz1LOSxwzq5BLmPqv5A4G5RjSViipjeMEqesAlPIvHVYfV+vZAcGR7Nce uye/yao5B/WZaTak2NIRS6Ym7GiC5IezU5cot2ERQmZ9/jMOdTFhKx0Cwbsdk8dHUmymfc M2tlRgf0RybjwV5kRSuOoUViFP+Exty7/+gl37zyX+wBK8dUTxMPjFlPyPsjfidNWEHpf9 zBv2wepUxnZAHW5yNPGoHJfO0FjGZMuZbxrmYOyR9qN/f7btlmkBFXBiFW69/Q== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1788984083; b=ayCHEl1dKY3ggzG1NMNR+Qj9HkUZVAUj0csv8MV9wPqEFGMRHd8m/QWykO+NmQ0mjlqBy2 d1/1lTfx+QfF7V2oaDZqIZUc9h4kan1fMYmAF8/kHmrwYOyx5T7ZLhrLLI6yCfm5ZNwHZL mTBsqDcl0TcIVVgqUnd9xROPbB6JvsGrk9KvEpFPY1WGatX2SvjXlvPorRa0Uz8t4ngxfV 5vtDLlE0TMxxw3d2wB6i4Lm4XImX8swmDIl2dRZPlPpbwUxx3N7JSBYwo/R3igSMp9bdWw V70zf88hI3lLGi5cSHZmtj4a+6+vt5epWnCYRi9SqYFhhL4m5fbqpbeijbrDfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1788984083; 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=fv6gpGiB5CdcXQFvdYQycw7mE+GuaeicGDIh+6kPo/0=; b=QKRCAROlf7LENSy2EOMG5NcqDti/shNuflmW5qNKTvIiteTHHjGSlpyV3m1vIMHSBV/8Js 3x+mLkXX5eqgA2V7r+6RNG5uahdkZiNuBSdtZsS+hx6ppj1vlG2vSq4nZ4phlyvmkBI9fK 8hluQ8Od4KUiKFXPBxfzDPwL2NaoBjvWYO1YQNVcdYnk1HNuAtOIf3+RYXmI/sGKEQf3gU mfs1zNNfIyyVhbsFnuR04T/i1cKL1mcDDnz0QtEcAw3fh0M95YeQBswepncy9lsWprHr7h adllW16FVffQx2j27IF9qGawwf8OtbUTYT2rcr9UR5LJtOWQfvNA7DvZ/ILxDA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hgBX30r9gz1BDb for ; Wed, 09 Sep 2026 20:01:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1f01a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 09 Sep 2026 20:01:17 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron Subject: git: 75b9d19c62a1 - main - linuxkpi: Define `for_each_if()` 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 75b9d19c62a148a30859f9a2dc47ffa14e9d644f Auto-Submitted: auto-generated Date: Wed, 09 Sep 2026 20:01:17 +0000 Message-Id: <6aa1bb0d.1f01a.a8f8c28@gitrepo.freebsd.org> The branch main has been updated by dumbbell: URL: https://cgit.FreeBSD.org/src/commit/?id=75b9d19c62a148a30859f9a2dc47ffa14e9d644f commit 75b9d19c62a148a30859f9a2dc47ffa14e9d644f Author: Jean-Sébastien Pédron AuthorDate: 2026-09-09 19:37:48 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2026-09-09 19:37:48 +0000 linuxkpi: Define `for_each_if()` This macro was moved from to in Linux 6.15. Submitted by: Sourojeet Adhikari Approved by: adrian, bz, emaste, seuros Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57465 --- sys/compat/linuxkpi/common/include/linux/util_macros.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/util_macros.h b/sys/compat/linuxkpi/common/include/linux/util_macros.h new file mode 100644 index 000000000000..6d3e0e0729ef --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/util_macros.h @@ -0,0 +1,18 @@ +/*- + * Copyright (c) 2026 The FreeBSD Foundation + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#ifndef _LINUXKPI_LINUX_UTIL_MACROS_H +#define _LINUXKPI_LINUX_UTIL_MACROS_H + +/* + * `for_each_if()` was moved from to in + * Linux 6.15. + */ +#if !defined(LINUXKPI_VERSION) || (LINUXKPI_VERSION >= 61500) +#define for_each_if(condition) if (!(condition)) {} else +#endif + +#endif /* _LINUXKPI_LINUX_UTIL_MACROS_H */