mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-22 17:30:40 +03:00
Building HWPM with Linux v5.14 currently fails because the arguments passed to the dma_buf_vmap and dma_buf_vunmap functions is incorrect. The arguments passed to the dma_buf_vmap and dma_buf_vunmap functions were actually updated in Linux kernel version v5.11 and not v5.15. So correct the kernel version in the HWPM driver so that the correct version of the APIs are used for Linux kernels v5.11+. Finally, drop the kernel version check around the inclusion of module.h and the import of the module namespace because this is not necessary. Bug 3918909 Change-Id: I98eef5c69af058abfd5ac925614954404371175c Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2860794 (cherry picked from commit 72f00b64c3871e69e7242516849a76bde106ae17) Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/2888555 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>