From nobody Thu Aug  1 22:27:46 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 4WZk9v4N1mz5RZXZ;
	Thu, 01 Aug 2024 22:27:47 +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 "R11" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4WZk9v0m2dz4Z2S;
	Thu,  1 Aug 2024 22:27:47 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1722551267;
	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=0ddXgbLK+hBljDmNTXBCF/e1JXY4XexfkMz/QJmkTEM=;
	b=OuCTGg/E/q3FcaYT5qEGLW1T1OKrFr5u0ViSbFNfZmYSo4Eb8LrqSFJiTJMr/3U8d97E51
	BXgTgW9QcVrrs1cTKLExsRwhfFsvVT3apJ+UrNR5bZKF6VN1FHQzBltPCh2YQn216xGQ7r
	GxLkHaVnOJygG+KLqOhOZ+xu5JIt+dbUCLqkDTAgs2F7iCJsnOHcKP7SMAF6WaIu0DBbtL
	f6+dBDvNT1y2D/xGBBMewt+lTA1nrXJy6f6zG9d6/u34OhwmAMO/asHGLEjuQaDqHbbk2Z
	PuT18YunugDSz7OtgpvZn8oTiRfg5lOlj8GkQl6h8zWeZ8SCX/7VvxgvQFj4Ow==
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722551267; a=rsa-sha256; cv=none;
	b=qEUMgUmfL5+WGrSAjbzGSGCdBtjjR2XmF9YhrVNgr4RrLUokZcBgEvWylPv6h2KEu1SgDx
	9r6hAf8Vw/dE0IF+V/m8JgRl38/jy1Kt21xBRv4t6bedI51euyYz8qof6OXBox3SC1y+2B
	goPmLNaF8AJiH4C4WxjZPaHJbdAKIIP1ab9apw5PNu6+oAfgUUM6Jb3K4Zkxs3f+d+mt7d
	r1exGCWWilOOObfbYQ0aMiDJWtNAuR59Tknbx1p/L9hk5scWQBE3u9K+FyXcngBLphIJlh
	1vfgrnUdu83hZzAVb+16s+Xw/hhfs9eUpf7Ff6214zmZXObC/0ZtX2ZwnDGG5A==
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=1722551267;
	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=0ddXgbLK+hBljDmNTXBCF/e1JXY4XexfkMz/QJmkTEM=;
	b=cOW9FtU+lrEgBqLPL7g+23dEAm0s5ZFHyxaDIkRAVVKgLJqq3tTk07tsmF1PBDp6kaxLCW
	cFsVzp3EX9awn32826bJmjy08vtm5egbpFUnrn99y26rCEi50ig6qznDu0T8rL1/TGbRqV
	J+SSs/P0/TvsprM2MA8NB74W95cKC7kz/rBOIFfgVlwvAem158OtEhavAlPZQObgxGY2Ab
	iHLJisO3Snauj/qJUOxeKjKO9PF5x0yfOfz2VNX9rIQQ4Qfz9xngBB0q3Jz1oGKW58EU6v
	oufQBGLT354CNf3bl+161uLRlnhovModjmyysDEPC5dc+s/HqZdC0QvrcFbdsQ==
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 4WZk9v0NVdz12nq;
	Thu,  1 Aug 2024 22:27:47 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
Received: from gitrepo.freebsd.org ([127.0.1.44])
	by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 471MRknO027925;
	Thu, 1 Aug 2024 22:27:46 GMT
	(envelope-from git@gitrepo.freebsd.org)
Received: (from git@localhost)
	by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 471MRknM027922;
	Thu, 1 Aug 2024 22:27:46 GMT
	(envelope-from git)
Date: Thu, 1 Aug 2024 22:27:46 GMT
Message-Id: <202408012227.471MRknM027922@gitrepo.freebsd.org>
To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org,
        dev-commits-src-branches@FreeBSD.org
From: Vladimir Kondratyev <wulf@FreeBSD.org>
Subject: git: ddde8df29363 - stable/14 - LinuxKPI: Add kmap_local_page
  function
List-Id: Commit messages for all branches of the src repository <dev-commits-src-all.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all
List-Help: <mailto:dev-commits-src-all+help@freebsd.org>
List-Post: <mailto:dev-commits-src-all@freebsd.org>
List-Subscribe: <mailto:dev-commits-src-all+subscribe@freebsd.org>
List-Unsubscribe: <mailto:dev-commits-src-all+unsubscribe@freebsd.org>
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/stable/14
X-Git-Reftype: branch
X-Git-Commit: ddde8df29363d4dfccb39975039d56e93275f061
Auto-Submitted: auto-generated

The branch stable/14 has been updated by wulf:

URL: https://cgit.FreeBSD.org/src/commit/?id=ddde8df29363d4dfccb39975039d56e93275f061

commit ddde8df29363d4dfccb39975039d56e93275f061
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2024-06-26 20:43:43 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2024-08-01 21:09:40 +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
    
    (cherry picked from commit 73f3589120e61b4b9df1ef60c5be12ccd81878f2)
---
 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)
 {