mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
In Linux v6.18, commit 84efbefa26df ("mm: remove nth_page()") removes
the nth_page macro and this breaks the build for NVMAP. Define the
nth_page macro if it is not defined in the kernel to fix the build.
Bug 5566555
Bug 5215421
Change-Id: Iaa6bcd2204e4c1ab59516bb7353a71f3ec6e19c4
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Ketan Patil <ketanp@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3449760
(cherry picked from commit c0db792d335d8525821d3aac16e64506e84bf4c2)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3475136
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>