From nobody Thu Jun 08 18:08:22 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 4QcXJQ2TDPz4cF3j; Thu, 8 Jun 2023 18:08:22 +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 4QcXJQ1yC5z3wvX; Thu, 8 Jun 2023 18:08:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686247702; 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=SqiNUGPj5iVPwd5gGCCXBv3D191Mb9PnBZb3BBUnxfg=; b=AQDsMvHaQJKgItp8Hnl4ZasKX1clYHPJuIAQNNEYYV40kkUxMmgzq3tFTDVfUvPmR86SX6 N+GkDFTomuSVGL2DcZtezhgJYjZt5x69j24cTWCIleJLTdqx9YlnT081fzvQVeY58JRUX9 5ZPIR3qOqB+j1op50Lh3zyNFyWOXJ3oZj5dDDosLBL4ypsFXedRbSzFee3GB02751bTpck Wo4Y/W2+92d6q3z0iV30HaSSF1jBYYwhRC+cSPcdLKfLnfHoo+dqih36Jhn3Z02oA/wa0S M7YBeY2mXP8yXwP1OZT3XD8Nh2GVP/+xkNe++AYXCkNfCWLY8Kb6tmx5YkZgvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686247702; 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=SqiNUGPj5iVPwd5gGCCXBv3D191Mb9PnBZb3BBUnxfg=; b=E/QwbIfxwpqVIyj32ABd8eNNT5lOpsWgiBAwrHCfH54ybY2Bdclk4rshcLFDq/H4UJXP3T GmoL2gpOSceBeiMIfbBB+NFhDjJLLKbPpIEtnlOpq8ljIQIEW0PrweDnjvc8GVN1O8IgSd ID8wOVmYT6NwWPRRIL8AjuQusgnC0oxL4SFSFUFHZovrwYvsJ+dcUQtbr8iD3Xl54L6cvX XFBJLSaZ5+T4VhzyNMHsM9KqC9p2ZYLZ7ViTG9uZJil68Flg0IqhaKN2uN9UN11d5qW72P PsPlYTaX4HF6fTyQeMyS8iGSue3IVAor/vpcA8gR8dYyG6BsK532vyk5XPDu5g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686247702; a=rsa-sha256; cv=none; b=Timm80ffm5ty9Ifk5bypCC0HbJD5j0QGWiWZGOrX74m3JKbhfahiRzXySzcLD7wtf2kzJK ckRschEM9zKVxPuq2cRJX09MinWDjowBTlVuxbKxu54npHf7aOwF0RiPLZJQSjqIqOmvTh lxXQBvI+yaW/tNl5vo7X0+XdA2fyaiYA6IPAOZYEJ1wjbkQV9suzyof0DDp46UCTMjKFaA 97xkJU7M5cTXAKmnKkJ5ij4Vau6EzVAyCyTbkru0tfXco1yTBL/a7NdJD1sIIVVanpIMp0 gjlYav6qebXW2f+92nR+PaWClLeaRlfR+2PPzlK+9ubvxs8hZm0QxKGK46G8ow== 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 4QcXJQ0wdnz13gn; Thu, 8 Jun 2023 18:08:22 +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 358I8MgX016412; Thu, 8 Jun 2023 18:08:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 358I8MAh016411; Thu, 8 Jun 2023 18:08:22 GMT (envelope-from git) Date: Thu, 8 Jun 2023 18:08:22 GMT Message-Id: <202306081808.358I8MAh016411@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 4cbd427788ec - main - LinuxKPI: add devm_ioremap() 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: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4cbd427788ec625f17c1ecdfccbb7b06c1c908d9 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=4cbd427788ec625f17c1ecdfccbb7b06c1c908d9 commit 4cbd427788ec625f17c1ecdfccbb7b06c1c908d9 Author: Bjoern A. Zeeb AuthorDate: 2023-05-20 00:53:21 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-06-08 18:07:28 +0000 LinuxKPI: add devm_ioremap() Given we do not seem to support ioremap() do not support the "devm" version either and simply return NULL, which means we do not have to keep track of the memory to be freed on device free later. Sponsored by: The FreeBSD Foundation MFC after: 10 days Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D40173 --- sys/compat/linuxkpi/common/include/linux/io.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/io.h b/sys/compat/linuxkpi/common/include/linux/io.h index 598ff8e0376d..4690653cfc8c 100644 --- a/sys/compat/linuxkpi/common/include/linux/io.h +++ b/sys/compat/linuxkpi/common/include/linux/io.h @@ -403,6 +403,13 @@ _ioremap_attr(vm_paddr_t _phys_addr, unsigned long _size, int _attr) } #endif +struct device; +static inline void * +devm_ioremap(struct device *dev, resource_size_t offset, resource_size_t size) +{ + return (NULL); +} + #ifdef VM_MEMATTR_DEVICE #define ioremap_nocache(addr, size) \ _ioremap_attr((addr), (size), VM_MEMATTR_DEVICE)