gpu: nvgpu: compile out ununsed code on safety build for common.nvgpu

Jira NVGPU-7052

Change-Id: Idab4f9d56c0748f54fd08fc5fd01d96a66f94700
Signed-off-by: shashank singh <shashsingh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2581247
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2670885
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
shashank singh
2021-08-23 10:29:42 +05:30
committed by mobile promotions
parent 05a1f927f8
commit fb0ebef0a7
6 changed files with 22 additions and 9 deletions

View File

@@ -295,8 +295,8 @@ int test_get_put(struct unit_module *m,
/* to cover the cases where these are set */
#ifdef CONFIG_NVGPU_NON_FUSA
g->remove_support = no_return;
#endif
g->gfree = no_return;
#endif
g->ops.ecc.ecc_remove_support = no_return;
g->ops.ltc.ltc_remove_support = no_return;