From nobody Wed Apr 22 21:08:34 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 4g1BfC0BcVz6bKsT for ; Wed, 22 Apr 2026 21:08:35 +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" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4g1BfB4RW2z3l53 for ; Wed, 22 Apr 2026 21:08:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776892114; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=moWyKbgRLIYhs9NJnvNyIgoOfa7KSDo3rG+04uZ3WOQ=; b=Yp1XMNuP+jiFqSJ92HA+gbxyOhYB0KCpfrGw5hGZsDq+LOd0SXZJb8Hdyg2qSVqQcZmqbE Aj5vbAAQNJ5L1Vn2avUi2nDQT/V8LOMH0UFCNzjsVd49OTlKouOmYbJLNhsrxsXMjGOZ1z sJL7DN32vzRgdnFc8JlyIHQQJsKBF36FFBO1HlNUZ/J/HZbWunYT1DCgeut1iLESWs7sUP OV1kPDNL/oy4DjXZtvsc8y0067fej4nOB7V4Nm0CNAzOF7F9dlHpczf5ZJJ8HEcFo9gHYf otlLgInm9qPgIgouLkRMJtGYHzdsH93y0CIe/AfASVSnrTqnUpw6LMuUX0tpeA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1776892114; a=rsa-sha256; cv=none; b=yRJ5LDbicuZmkTvyIyO675U4Nq7Y3wfo6uS8/ad+RWZF8ZfPO5Me/G0FzNpPRkj+272EbP iSnwKgCGWIsNEClMlDARXap+vqRMmEzwwn6WhB6ggnPEorNahOVtcOZg/YQPF5o9feVFzZ MBYoltgJ88kfvZIeW7WSWc8nU41JWOt3A9oaKldgDDcEu/PwlkDz11Snb5kv/mmoVjgCsl 42CR3RTPJvLqwjnzh57GacP5WJxrVHhNHsegyesWgOsGB8c0RCj0XQeuLKeDtwRb5IcwPD /BzIbVCJXM2zVVPrnLXiDinLW1r3Ug3U68CqC3ZbqZ+D7UKqIp+AfRvz12q5Cw== 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=1776892114; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=moWyKbgRLIYhs9NJnvNyIgoOfa7KSDo3rG+04uZ3WOQ=; b=OAQ6krHzVYN6gCegjC/P8lf+Io7wJcw2u+u8qrG+YT2y+2hZKFnV+jol2Yhxoa8LwnEISB CEexLSm0eRsmtj547+clNd6NDxkoZEGiNKpqw6kpDXKfjBFgfzFZ0Vo37OmseeJUUBX7/C 9jhrkis60fjUIYIYA3mYoPGSy1pyjN8Z2p4pk5gQz0i7a4oYy+IMgIxKljDZ9mjs7P+hqJ 2dYQdeC+2Dxwjw+LBMlT85Bni+kqHd9ksuusxxkCtILknOgYRRDdEenr/cZB7vpskFQeXf LxjfqxrM2TO+CULIWuJcRa17ILhp9mD5RBDyraGx9eFiM9WTJlFBN7rG77XRxg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4g1BfB3wM4znlq for ; Wed, 22 Apr 2026 21:08:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 303b8 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 22 Apr 2026 21:08:34 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron From: Bjoern A. Zeeb Subject: git: f22e9fb4b895 - stable/15 - linuxkpi: Add 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: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: f22e9fb4b895f1fe1334d695f256b1b64b1a2191 Auto-Submitted: auto-generated Date: Wed, 22 Apr 2026 21:08:34 +0000 Message-Id: <69e938d2.303b8.3538efc3@gitrepo.freebsd.org> The branch stable/15 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=f22e9fb4b895f1fe1334d695f256b1b64b1a2191 commit f22e9fb4b895f1fe1334d695f256b1b64b1a2191 Author: Jean-Sébastien Pédron AuthorDate: 2026-03-08 09:40:38 +0000 Commit: Bjoern A. Zeeb CommitDate: 2026-04-22 20:57:02 +0000 linuxkpi: Add To be exact, there was a dummy file with no content before. This commit defines `struct mfd_cell` and adds two function stubs. The function stubs are not implemented but still return success. They log a message to indicate they need to be implemented. Also, unlike Linux, includes . This works around the fact that we can't include from , due to a conflict with the FreeBSD-native `struct resource`. The amdgpu DRM driver started to use it in Linux 6.11. Reviewed by: bz, emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55736 (cherry picked from commit 356d6f47d3b54b34aaba9e60aa551f3d615d0e2f) --- .../linuxkpi/common/include/linux/mfd/core.h | 49 ++++++++++++++++++++++ sys/compat/linuxkpi/dummy/include/linux/mfd/core.h | 0 2 files changed, 49 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/mfd/core.h b/sys/compat/linuxkpi/common/include/linux/mfd/core.h new file mode 100644 index 000000000000..1a69a3803b5d --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/mfd/core.h @@ -0,0 +1,49 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2026 The FreeBSD Foundation + */ + +#ifndef _LINUXKPI_LINUX_MFD_CORE_H_ +#define _LINUXKPI_LINUX_MFD_CORE_H_ + +#include + +/* + * is not included by Linux, but we need it here to get the + * definition of `struct resource`. + * + * At least the amdgpu DRM driver (amdgpu_isp.c at the time of this writing) + * needs the structure without including this header: it relies on an implicit + * include of from , which we can't have due to + * conflict with the FreeBSD native `struct resource`. + */ +#include + +#include /* pr_debug */ + +struct resource; +struct mfd_cell { + const char *name; + void *platform_data; + size_t pdata_size; + int num_resources; + const struct resource *resources; +}; + +static inline int +mfd_add_hotplug_devices(struct device *parent, + const struct mfd_cell *cells, int n_devs) +{ + pr_debug("%s: TODO\n", __func__); + + return (0); +} + +static inline void +mfd_remove_devices(struct device *parent) +{ + pr_debug("%s: TODO\n", __func__); +} + +#endif /* _LINUXKPI_LINUX_MFD_CORE_H_ */ diff --git a/sys/compat/linuxkpi/dummy/include/linux/mfd/core.h b/sys/compat/linuxkpi/dummy/include/linux/mfd/core.h deleted file mode 100644 index e69de29bb2d1..000000000000