From nobody Mon Apr 6 19:55:31 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 4fqKnJ1Kc5z6Yd39 for ; Mon, 06 Apr 2026 19:55:32 +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 4fqKnH6VhNz3Z36 for ; Mon, 06 Apr 2026 19:55:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775505331; 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=rWB6ZWBb2hwwnNSk5TKdp7Nr+Ov8Xshk0PlJEA9i4s0=; b=Ekb2cGV4zuIZeSw3nMqhpiS30QIikeRuBqvwY6+IxB1CXcnvdrQd10p4aaDu4dciuNGIiT mPWnakR3Fn3gwQu0j+e5V/KrB0qA98vtm70Jyn176LigNlhmvS8i4QC1quhSfC9C97BXsJ aF3MjyicPc+nvwYWq2h+uf/EkuhezODnXnGU5cljs69dkqM0sQe1KeKSUseoar9upufv5P 999+nHrsJWaJINbLkI1TOslWNdWK3XjEzrRcnHK+dCSTG75YhgOCdPE8xpnJLpKZSughFb E6ne0f/8uvqerqFZVwyiEXKW7kKPBvf5NvJhwqzXvpAWm9vswbh9HWnL+aojcQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775505331; a=rsa-sha256; cv=none; b=XJ+V348cPUfPgRgNx+lHQliPX1VnPeEFBpnHIb25MB6Ggz+A7Y3OlAR/ngBrIf10tBkrLO CeXpxPd1D/JH8ffAkfjB/QWRx5Ao0s+GQ5m8y5NU29xoqvaGQ9cFlJjS5836lS/do5uucf HhTyMnXll7LADXF+XoYRxOhZyReToZhugIYTQAuoN1HzVRdB0MiebxNBU4kZiPCBMUTm1Q iHJjZFUbzpyLjXexxcIL3H9ZsjVJE9tLIjVaCMng92EqgDkHcnKAnRdMsgpD/CtW8SnE8I QjDd5Aa7sHkYkpm8F+LtLDvPY47MWLPSnYD3Z42VoIdpDdEuFTZFDRhMt1TxsQ== 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=1775505331; 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=rWB6ZWBb2hwwnNSk5TKdp7Nr+Ov8Xshk0PlJEA9i4s0=; b=jXGafwLYaPLwZUySBNmOIDf3NlnAgzvoG5HIEcy4Q6QprqR7V4IUSM5zN2/MZldpjQHn79 LPSgPhRT7zeaL/3H2Tve6L4bKfVDLpSF7CNGimADwPWUimhB566V80BFGj5OMJfaOC7vjk T1ood85dHvZE0cxDaS4FYDnZQAOgd80n+DDYgbJenUWmQzyCx4ecrnAcqY1+TWM4AbMDGW UsLQGFW/zIPoF3XA9WwuNwkW/ZG3QqTUityc0H8551xaJQsMbtDFqfr/AxfxyhwNu+Pf/F wOuVgD8XBIdyj8MFd1QRAairO8SHXBBRimV0DC1qzh8xP8GaDyLqQJgaXnlglw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fqKnH61rMz16Pd for ; Mon, 06 Apr 2026 19:55:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 36648 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 06 Apr 2026 19:55:31 +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: 356d6f47d3b5 - main - 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: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 356d6f47d3b54b34aaba9e60aa551f3d615d0e2f Auto-Submitted: auto-generated Date: Mon, 06 Apr 2026 19:55:31 +0000 Message-Id: <69d40fb3.36648.27830016@gitrepo.freebsd.org> The branch main has been updated by dumbbell: URL: https://cgit.FreeBSD.org/src/commit/?id=356d6f47d3b54b34aaba9e60aa551f3d615d0e2f commit 356d6f47d3b54b34aaba9e60aa551f3d615d0e2f Author: Jean-Sébastien Pédron AuthorDate: 2026-03-08 09:40:38 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2026-04-06 19:28:09 +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 --- .../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