From nobody Mon Jan 30 22:17:43 2023 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 4P5Mxh02Sqz3bGh1; Mon, 30 Jan 2023 22:17:44 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P5Mxg6FV3z4CfB; Mon, 30 Jan 2023 22:17:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675117063; 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=lOFJDCfA1BI1+424B6/ENq+7GwXJa7IXhsVsLjcLjX8=; b=gZlzEtQb8wLOXa9eO2zPTxaQJcDGe8yhSz/tBCkust3JjF+HIh1Pd1nQ7TrAUyBZteMBiz F160coGMY0R1Cmm++a1XIR/AttXjFP72t0Zje0AkiWDZgGfhrzc1xfmhgzNDLrvEY8b3Al Anv8Fabxu4S8ezLJ5bROAuC79CG24YuzdZH4VqCKVjeS4lYADLSku57v88c3crZnll8tki ebmuY8M+bSdlojBuuF/C2Nhb+xcGe6C+wRtXCWAMtU2cW69wj6GEqXfgxXGNrKG2B0kkLr R9rtuqhn8GqcsbHWDSEbUzRvGmquhHMr+drOYxmuxaFTS+zx/vsRnpGnYyC1aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675117063; 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=lOFJDCfA1BI1+424B6/ENq+7GwXJa7IXhsVsLjcLjX8=; b=RwpbHnClPWEItSHFyFKIIaxj8AwoK5rqtTH2dqoZRH8uFV3lIL+tWJ57ik1UWxXTorTXgI VuOfoC1hql/Ug/hwpde7sRU5lMKTpk799YUHvPhpD9od8QmGAeA5Zw6U+YMSgEv1jbnhU0 YTXMZB303fRTmaI0QRZ0ASoRcftAbeDcbI371IQGumA8Jjzt27U5tRZ669FlOISGnzhsVC kVQNTgEQw8JqqMIt5mOCb2KxMpW+71d2nRioWF/tVnNabuaErHSKpvPy2t7ZWgjhZlstnj KEJThmopNMF0tW+1l/FoaxokFi+I3V0Z9MeQzx3SREqy/zeuruv16OE+2BqFOg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675117063; a=rsa-sha256; cv=none; b=NQn5Y5SDCX8laVbtSSb8SiIkxdzfOo9iR7kAn0C6JnTz01OzlFOmS7iwQ6jdVmyXGvuF9M jHE/85Lgaz//mRUOSqJ+BKLvKcrbsV/JfcrUDtX1Y3nWTSHQYGlxI/1anl4R2W0PitmZ7C 6S9TkYqGWgN8kIGacm0c5G1uG0+/MJGo1TuIlO2th+PuwIT3R91ev473sJqECssqjCMx4m jOC8wH3FA6wkwYjG7tdDz6sG2t2FEaf2ukB1XvP5Cbb/1hnTMMg2RQFl6oX9DWYXUSfnpv blS2C6RPKvpp1bMko+aQ5PyHP0Tae8bLjJ+rQca5h1gm3NB5loGfzB6cVBDJjg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P5Mxg58x7zPmm; Mon, 30 Jan 2023 22:17:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30UMHhZn060441; Mon, 30 Jan 2023 22:17:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30UMHhL0060440; Mon, 30 Jan 2023 22:17:43 GMT (envelope-from git) Date: Mon, 30 Jan 2023 22:17:43 GMT Message-Id: <202301302217.30UMHhL0060440@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Subject: git: b9ef0689433d - main - linuxkpi: Define `dev_is_platform()` and `to_platform_device()` 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: b9ef0689433d7d08c96695e571c4c262a3ac9007 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dumbbell (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=b9ef0689433d7d08c96695e571c4c262a3ac9007 commit b9ef0689433d7d08c96695e571c4c262a3ac9007 Author: Jean-Sébastien Pédron AuthorDate: 2023-01-22 13:46:54 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2023-01-30 22:10:03 +0000 linuxkpi: Define `dev_is_platform()` and `to_platform_device()` The former returns false and the latter returns NULL. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38163 --- sys/compat/linuxkpi/common/include/linux/platform_device.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/platform_device.h b/sys/compat/linuxkpi/common/include/linux/platform_device.h index f07b5aac967b..f45cdce829c4 100644 --- a/sys/compat/linuxkpi/common/include/linux/platform_device.h +++ b/sys/compat/linuxkpi/common/include/linux/platform_device.h @@ -42,6 +42,8 @@ struct platform_driver { struct device_driver driver; }; +#define dev_is_platform(dev) (false) +#define to_platform_device(dev) (NULL) static __inline int platform_driver_register(struct platform_driver *pdrv) @@ -76,4 +78,12 @@ platform_driver_unregister(struct platform_driver *pdrv) return; } +static __inline void +platform_device_unregister(struct platform_device *pdev) +{ + + pr_debug("%s: TODO\n", __func__); + return; +} + #endif /* _LINUXKPI_LINUX_PLATFORM_DEVICE_H */