From nobody Wed Sep 09 20:01:17 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 4hgBWy1Jrxz6rJc2 for ; Wed, 09 Sep 2026 20:01:18 +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 4hgBWy0PCtz3Djn for ; Wed, 09 Sep 2026 20:01:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1788984078; 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=cPntZwj7iPZYZLPE43ZRkYA+TyB1WiitM0rA2MkD7Ue8oJ1deSx32YXUyjtZBJEmUKLGIV Vn5G4mYOT9xqh3X7Y6mC1TceXzh7JBhU/Ollxz3jYDHKSJrx8oWa0RMQtafRZ4qnxCv4DL N1xWs5zLKLnvQdBGe9a7tQ7DWsX6J9saCO7wC/suzc5OehrufVJBzygYLylB3mvgmslrkt MnZiswPO9uiuf0kK3Z7UPqZ6E6kjxBu/dO9NuR42CjhSBWu7KZzaGuzayGrobZ6GVVv/qP Dc5jWpoWvcH0gQr1XjzdMayAFug4/aNCzUBfIUxo9mo70APDb242E0hMPSLeZg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1788984078; b=DbR3r1/wqSQb28wjjVY4IQ/VtXgo1In+EHmxY/Ese27kfPx8MTmwUg7QpxOPfGcpOCdnrL zurR38zOUgJ2kFXszXcQTu2aQJGiV9dTR/QTxQaPOXJjaMdc3Qe6X+SrtSZRCE1ETLK4DS Avpe0WnIJIAbDNW+BaN/TBmv/365tKaCYThQwCKCWdNcQ1qEjVphEUk5skdQY1i1mG2lJz xyS6Cqx51l9ZQToStEN5MDeYnF2AOqJ6c8sjKIs20jilXG78M18HgCs7gt6bTIEQ9fWbww IYfqLzYCHRqUos1V5yhySplr2L4TpJJBx8EOXhNgV7stWRE0D0GM8Z14dTQVoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1788984078; 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=pBL0+b1VGel4x5RLs35TptiV7W64RLkbQSs50XJdeAcHEaicySTAtwmGrw/IjundteIBuw b2Tr1b6bCwK0lBufTJ1STeVDT5+VOlQhg2f/wywYcBDQxm4c30iBZ9MR+2lTyCIJU3p4gM nEzTLu0+Yg8fHLuwJwsOAJckbZh315PLQtIytNIJIyfGjndhizicTLxIU0AIbVmHZA0kSz MyiRlrTJyW+5iKKUCdhdFOqw3AMCjkdshHm1j7bX39Yf/aJpwQhEWdXHbDzYOOOkbCTx0q QC9BTtIkIk+yhmEd94AGTvEHUzfk2x+Bof9cC1dup8TUcQuhOcaFgQn46BQz9Q== 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 4hgBWx6Z43z19mh for ; Wed, 09 Sep 2026 20:01:17 +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 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 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 */