mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
To use enum gk20a_mem_rw_flag declaration, gmmu.h was included in qnx nvgpu_nvmap_user.h. However with that recursive header inclusion happens as below: nvgpu_nvmap_user.h <- nvgpu/gmmu.h <- nvgpu/nvgpu-mem.h <- nvgpu_rmos/include/nvgpu_mem.h <- nvgpu_nvmap_user.h Remove this recursion by moving gk20a_mem_rw_flag to gmmu.h. Also move nvgpu_aperture to gmmu.h. With this approach gmmu.h can be included in nvgpu-mem.h as it is independent of OS header. Bug 200717195 Bug 3250920 Change-Id: I6d3011d830e3778d8d4224ddfcc2eb85a49e444b Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2531788 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>