From nobody Thu Aug 01 22:28:00 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 4WZkB937rVz5RZwk; Thu, 01 Aug 2024 22:28:01 +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 4WZkB85FZcz4ZXq; Thu, 1 Aug 2024 22:28:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722551280; 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=l+Kwd+aT5en4Jbusr92ABQLaBx3zpAhjyjOHtm/++Ro=; b=KbHhRPf6wDzzPb2Q5fhmOrEbO5n6yqRCn4mtBOhs05YXasKfBF6LVkdDppPxR6RttB6ReJ NTrwdmtvVGcIpt3P9uo5WQblmWc1wZf6Yy+5ty3odEmGz3JgbBYoCzZ4etphtAt8BX4a6V R/CGsyLy7B96vXahEs6Tf89f2KGf3cXs0sJeKBz3BZr1BmZ7lcP/OCVgYIRqYZNo+Om6Zi eJxu1zd6grJMCBJC45fTNX6ziIslTqmzCQ4ctXGQHT59wbY2WcLWRHixqwgzWSkMGdeEV9 c9PD60t0o7OpcL7MsyLAfhFtf8dU2nQmckDbQZD8fWu3I3VTBNYfl+zCKjkgPA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722551280; a=rsa-sha256; cv=none; b=oV/+pfwoQmhtmoy21zrjtF0OFGM31ur+Q3Y1kP5WnTksGsDmo8YW0PdtEZxekVEi9sQ/Xt HvNYOeLjI4awMfo18nQTwUnVpV3vSyb0vITZv7bPyVlK2OGuXe1Jebil0mk9nniZjtxqsC MutmPdy6RqxfGCtPmWc7Ddzg5oCMpTp1uV2oAk6jnOTo+mJ8Fs1L3yhdR+Hi9kSkwIoVpy LS0kTb17gSN172n2UDIGgPKbIrj6nmCcAJryMC7kY9iOgxWaNp700XCIa0QlIARcS/eBvK 8x2kh5E9LPZAb2ppjPQbMTPZsz76GFwwr3RvI+GdWj/rsgIRhyxZbUAfkw5Hhg== 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=1722551280; 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=l+Kwd+aT5en4Jbusr92ABQLaBx3zpAhjyjOHtm/++Ro=; b=MCIm8QeYCfeCoRKk/3xluW8LuOlZCdNztVmiwyHoxcjpXpu6CjrkZXGftKTZv2MCHpWhzM 0WouMq0zrJr7/I8Y8oOeQtwWH3PGVf33wZ11UbjLg5S0pp96b1hkIkiACPiYT8JoXgdEA9 mJBIL1BbVWtO3dfq2VQYc6UoZUL/Iwb4I2WPaB0Cm5cE3hLg1XO4/3AIco0Mx2W1Yoi0IQ plddqErXCsYGhIdG/D71wQpDkl5ottvBGRTKSm2UQv6RLCgzQCRC07vxX6uYc0AlAbWmDb rllmbFCROqd0n1QoFznehoC51VT2p1sHiJnDbJmgONgJ+2PGRKfYmOCLWEhx9Q== 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 4WZkB84sYzz12Jp; Thu, 1 Aug 2024 22:28:00 +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 471MS0lH028507; Thu, 1 Aug 2024 22:28:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 471MS0BF028504; Thu, 1 Aug 2024 22:28:00 GMT (envelope-from git) Date: Thu, 1 Aug 2024 22:28:00 GMT Message-Id: <202408012228.471MS0BF028504@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 5a9734412375 - stable/14 - LinuxKPI: Add page_to_virt 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 5a97344123756e7d9c09064c27eff56c7bc9ea61 Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=5a97344123756e7d9c09064c27eff56c7bc9ea61 commit 5a97344123756e7d9c09064c27eff56c7bc9ea61 Author: Vladimir Kondratyev AuthorDate: 2024-07-21 13:09:01 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-08-01 21:15:22 +0000 LinuxKPI: Add page_to_virt function Sponsored by: Serenity Cyber Security, LLC MFC after: 1 week Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D45843 (cherry picked from commit 80aa295a5272d01b7f21eff6719dcd45e14e8e09) --- sys/compat/linuxkpi/common/include/linux/page.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/compat/linuxkpi/common/include/linux/page.h b/sys/compat/linuxkpi/common/include/linux/page.h index aa5acac4f5fe..37ab593a64e9 100644 --- a/sys/compat/linuxkpi/common/include/linux/page.h +++ b/sys/compat/linuxkpi/common/include/linux/page.h @@ -72,6 +72,7 @@ pgprot2cachemode(pgprot_t prot) return (VM_MEMATTR_DEFAULT); } +#define page_to_virt(page) linux_page_address(page) #define virt_to_page(x) PHYS_TO_VM_PAGE(vtophys(x)) #define page_to_pfn(pp) (VM_PAGE_TO_PHYS(pp) >> PAGE_SHIFT) #define pfn_to_page(pfn) (PHYS_TO_VM_PAGE((pfn) << PAGE_SHIFT))