From 5767c363124d396fc60c6a3bbb1e6539325fe7fc Mon Sep 17 00:00:00 2001 From: Prateek sethi Date: Mon, 7 Dec 2020 11:09:54 +0530 Subject: [PATCH] nvgpu: compile out g->max_comptag_mem from safety build max_comptag_mem is being used only for CBC unit which is not a part of safety build. Remove max_comptag_mem from safety build. Jira NVGPU-6258 Change-Id: I4773468174ca261ec90a09ffaadb853acc4352f0 Signed-off-by: Prateek sethi Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2455874 (cherry picked from commit 1262f7b268df8d64c91d5960a26a5ab9a58749d5) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2460386 GVS: Gerrit_Virtual_Submit Reviewed-by: Rajesh Devaraj Reviewed-by: Vaibhav Kachore Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/gk20a.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h index 3b45e1ced..245435f17 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h +++ b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h @@ -542,7 +542,9 @@ struct gk20a { */ u32 comptag_mem_deduct; +#ifdef CONFIG_NVGPU_COMPRESSION u32 max_comptag_mem; /* max memory size (MB) for comptag */ +#endif u32 ltc_streamid;