From aaba7ab960439333aa3959cbff0fd7701f50f8d2 Mon Sep 17 00:00:00 2001 From: vinodg Date: Thu, 16 Jan 2020 16:38:30 -0800 Subject: [PATCH] gpu: nvgpu: compile out unused call from gops_gr wait_initialized is already under CONFIG_NVGPU_HAL_NON_FUSA checking, add the checking in gops_gr.h to avoid the function to show in doxygen comment Jira NVGPU-4888 Change-Id: If80e7505959e7087140151224986837e79a47e6f Signed-off-by: vinodg Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2280205 Tested-by: mobile promotions Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Thomas Fleury Reviewed-by: Deepak Nibade Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/include/nvgpu/gops_gr.h | 25 ++++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/nvgpu/include/nvgpu/gops_gr.h b/drivers/gpu/nvgpu/include/nvgpu/gops_gr.h index 39e807a56..d95149745 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/gops_gr.h +++ b/drivers/gpu/nvgpu/include/nvgpu/gops_gr.h @@ -538,18 +538,6 @@ struct gops_gr_init { u32 gpc, u32 tpc, struct nvgpu_gr_config *gr_config); - /** - * @brief Wait for GR engine to be initialized. - * - * @param g [in] Pointer to GPU driver struct. - * - * Calling this function ensures that GR engine initialization - * is complete. This HAL maps to #nvgpu_gr_wait_initialized. - * - * @see nvgpu_gr_wait_initialized - */ - void (*wait_initialized)(struct gk20a *g); - /** * @brief Control access to GR FIFO. * @@ -728,6 +716,19 @@ struct gops_gr_init { u32 (*get_ctx_pagepool_size)(struct gk20a *g); u32 (*get_ctx_betacb_size)(struct gk20a *g); #endif /* CONFIG_NVGPU_GRAPHICS */ +#ifdef CONFIG_NVGPU_HAL_NON_FUSA + /** + * @brief Wait for GR engine to be initialized. + * + * @param g [in] Pointer to GPU driver struct. + * + * Calling this function ensures that GR engine initialization + * is complete. This HAL maps to #nvgpu_gr_wait_initialized. + * + * @see nvgpu_gr_wait_initialized + */ + void (*wait_initialized)(struct gk20a *g); +#endif /** @endcond */ };