mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
When building VGPU with compression disabled, then build fails as follows: error: ‘struct gk20a’ has no member named ‘max_comptag_mem’ 505 | gk20a->max_comptag_mem = totalram_size_in_mb; | ^~ error: implicit declaration of function ‘gk20a_dma_buf_priv_list_clear’ [-Werro r=implicit-function-declaration] 523 | gk20a_dma_buf_priv_list_clear(l); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fix these build failures by guarding the applicable code with CONFIG_NVGPU_COMPRESSION. Bug 4014315 Change-Id: I8c7287ab57ef513ba11a3d85c2edfce243f07418 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2869169 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>