From nobody Wed Jun 26 20:54:39 2024 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 4W8Yq35Vv4z5QD74; Wed, 26 Jun 2024 20:54:39 +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 4W8Yq34vBQz4LXK; Wed, 26 Jun 2024 20:54:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719435279; 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=7GhPmyYlY4olRuDcph/rMXoT/iGApP7P/RoGZBdLNCE=; b=v/AIr8g/4VTYOlMIiIri1SllcAFzKlQIQrkCKxXeJmeY7uf7klzAtTvJU9b+teUEuuRluK ciFnD4IiCbWDiz5mX4MrO03vLGhroTIi0b7Xsf42w6DNE+8qP5tGMDp1NIU64Fb7KZzLgf MiKlCejc6sHAdhlZRIhv2x3b4hEZAD2yJzYWXiOF4y5ceKA2edsbixaUiQjZipSiN0/xXl jEW17B6jR94mRiGj3TjM0wHnh32jnLqCOl+JmFY4HAHMlF1aFPd9QzQIeIrOtTg/WEd7An /Of97Tx0E+EDf9eg6yO0OG2N8Ik83p8f/9viveKDuN/QOONDfUcBG0CAri1OJg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719435279; a=rsa-sha256; cv=none; b=HjG2xCQuiXNct5nhQ66friV3Lqx5Ehv8Yutv6IsT+cFgvsjVXxPY9EzNowsIFR234Q7Cbu qXRfixa8eaWBJRZ4x/uIiVuuOkGyVURtyl+Hk3CC92QCHCCjWSS8OS48bo3GgMjgSmnx04 wQEI2MgTmOl0CZmc4hMKQbHrSeXd1XklzeN/US5zL42rX9XJzDHJW1ATiHq2PAAroq6+Ml 9Suc2NF+Ym9SuIiaae8uaJfXy0+H5TmfT3jXTVdF61J99+gVrzEiAl3cXC5jYWkFy1NO47 vlidAw5UfxSVxTlyW6irEzSciQzq6ji/hof0k9EYrfeLUsiFnSyvWZg7QS6iVw== 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=1719435279; 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=7GhPmyYlY4olRuDcph/rMXoT/iGApP7P/RoGZBdLNCE=; b=FVBSOiSxibKLHLzJ3GfAQEVDYWNBkpy4TPHXpRC3n/blOn492PvIqgelkPHa/4OQnxlgu3 n912/yNz9xgMY+JNZExuiWdVFxA+z7C/m/2Tk0cjQ6h1aCmAWcbTXrPs0bX4rya9ODMbdX 3/Ux0scTlFwZBrarb/Ouxl6HqByiyy7TZUbDeCcCBLi8QZJkyPjQkbxytd8Ao6SwewNOVY zHzh8dXCl2JlgedDgYwljDxNv7ZkYKhcHvdWFgXGGqyeP6hXvGFZlM+vBPmb+u07YJa5PU rZFkrirzHZA7GDjRCz0S4ZocY3+FokjVkYmeZJ9U1RFQ/kdrX7BtH7Rm11cYgA== 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 4W8Yq34TbSz10Rg; Wed, 26 Jun 2024 20:54:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45QKsdvm092333; Wed, 26 Jun 2024 20:54:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45QKsdrh092330; Wed, 26 Jun 2024 20:54:39 GMT (envelope-from git) Date: Wed, 26 Jun 2024 20:54:39 GMT Message-Id: <202406262054.45QKsdrh092330@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: 73f3589120e6 - main - LinuxKPI: Add kmap_local_page function 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: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 73f3589120e61b4b9df1ef60c5be12ccd81878f2 Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=73f3589120e61b4b9df1ef60c5be12ccd81878f2 commit 73f3589120e61b4b9df1ef60c5be12ccd81878f2 Author: Vladimir Kondratyev AuthorDate: 2024-06-26 20:43:43 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-06-26 20:43:43 +0000 LinuxKPI: Add kmap_local_page function kmap_local_page maps a page for temporary usage Sponsored by: Serenity CyberSecurity, LLC MFC after: 1 week Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D45609 --- sys/compat/linuxkpi/common/include/linux/highmem.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/highmem.h b/sys/compat/linuxkpi/common/include/linux/highmem.h index f770bef6b3b7..252d16b2ea70 100644 --- a/sys/compat/linuxkpi/common/include/linux/highmem.h +++ b/sys/compat/linuxkpi/common/include/linux/highmem.h @@ -93,6 +93,12 @@ kmap_atomic(struct page *page) return (kmap_atomic_prot(page, VM_PROT_ALL)); } +static inline void * +kmap_local_page(struct page *page) +{ + return (kmap(page)); +} + static inline void * kmap_local_page_prot(struct page *page, pgprot_t prot) {