From nobody Thu Feb 16 11:56:18 2023 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 4PHYLr0zxTz3q5v1; Thu, 16 Feb 2023 11:56:20 +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 4PHYLp3TkJz49qB; Thu, 16 Feb 2023 11:56:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676548578; 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=ulFoEiiyZe32yud+HNm2B2jx6tbD2xRIcf59dQoRjj4=; b=q8jjqeD4WZmedY8nYmHdOIf07didZuWn5hIuMYx/S+WUD+kqclOUNIEafBBFJTqwhO/40Z 1lKk8epF0rvejG1eEQVGasXO17juIOuBCcgQymFPGYQ503GKDfhA5k3Lc8RwUg2ZA+x4UG nr57qqWw1JlKhXcZ9K4yMdG2xOOAiV5WDqZ0uWEWfKLwvGQGy+YBb8dTdl/RIpZ0+2fJBX d8u3Ag6jCDgCVJ6iEZo7ElyDmuLCHxFMNvr5A7EFNzk8OcRg1O+2UqPTNBcEyH02nx+BZQ zuB5//x/zwmqrm4IY7tB08HyQ2GMz/lFq5PvLkrRgk+p6uXF0otPRexc4hAPQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676548578; 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=ulFoEiiyZe32yud+HNm2B2jx6tbD2xRIcf59dQoRjj4=; b=cbxJQdu+D0ul0PKIgGMGOx0i7vmbYHz8zNRhRnDdLCqcMZOxEuM6qrDqkfjKm6WAx1LfbR 6LwzG7TQ/xQnUSTm2hCNOm2yJbGjmF84GHflKBBlNhJo7KycuH+ayGW73jEXpvtfB7g2Z9 fUVz0KmRE2YSy6hUnmZ0y4OOJZUVP7MNU+RLFx4vkUcJABfPBTwUguTLzllsR3Wndl2gZw O1OVTOyLn0ZbQ0CTlGSxP24KQ5q6Q1+xmXU/Wz+jMrF6rkh9aSl4BDLuM7MJNEYmcGMaex Um4q+zDq2X8rvoQjXGIVO1vekN2exQvNM50Z4b6qGQ6Qa9BVINaBJlrG8JRJ9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676548578; a=rsa-sha256; cv=none; b=BO8jnaTaQY7GWZpuTqRWTamr4r3e7xUDtgiSFpc8FORAD1SiGsJABA2xrcjijULb4z1CGJ STtF9Is2+BMxWbgsqm755V841OXq3F35X5cobpkkAKcU1GIep6DsgkLoAxITltTMkQA2Lf HY0OVRLL8jk80b+qSQSeRNrbfkxoiHqJy2q9xU3SWE6OFzAcotReNhaFOgHBlSka9sPbbk vFs4nolax697VUlRsoqy6g/vfrfroiqvCxMZN/F98JAqvf9YfMOnmy8asjcrh23zALRkSi IsRFHgbHetTPsqLZtumgI3puwu8aaXs2XUh93kNI71U5qgYsBrP9Glx3q/V0/g== 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 4PHYLp25p9z13HB; Thu, 16 Feb 2023 11:56:18 +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 31GBuIlo055922; Thu, 16 Feb 2023 11:56:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31GBuI4f055921; Thu, 16 Feb 2023 11:56:18 GMT (envelope-from git) Date: Thu, 16 Feb 2023 11:56:18 GMT Message-Id: <202302161156.31GBuI4f055921@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Subject: git: 6c62af80e347 - stable/13 - linuxkpi: Define `dev_is_platform()` and `to_platform_device()` 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 6c62af80e347980094b1df4de50e66531f49190e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dumbbell (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=6c62af80e347980094b1df4de50e66531f49190e commit 6c62af80e347980094b1df4de50e66531f49190e Author: Jean-Sébastien Pédron AuthorDate: 2023-01-22 13:46:54 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2023-02-16 11:55:18 +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 (cherry picked from commit b9ef0689433d7d08c96695e571c4c262a3ac9007) --- 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 */