From 48265944c444d7bb106fcc3480f30c2718f6fbd3 Mon Sep 17 00:00:00 2001 From: Antony Clince Alex Date: Tue, 8 Dec 2020 11:52:49 +0530 Subject: [PATCH] gpu: nvgpu: update doxygen for common.ecc unit Updated doxygen comments for common.ecc unit functions to better describe return values. Jira NVGPU-6248 Change-Id: I36e94d7e41e28072c4bb0699024724e25fe3b35c Signed-off-by: Antony Clince Alex Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2456423 Tested-by: mobile promotions Reviewed-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/ecc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/nvgpu/include/nvgpu/ecc.h b/drivers/gpu/nvgpu/include/nvgpu/ecc.h index c2ae11d9d..32c29874f 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/ecc.h +++ b/drivers/gpu/nvgpu/include/nvgpu/ecc.h @@ -275,6 +275,7 @@ struct nvgpu_ecc { * of struct nvgpu_ecc. * * @return 0 in case of success, less than 0 for failure. + * @return -ENOMEM if there is not enough memory to allocate ecc stats. */ int nvgpu_ecc_counter_init(struct gk20a *g, struct nvgpu_ecc_stat **stat, const char *name); @@ -325,6 +326,8 @@ void nvgpu_ecc_remove_support(struct gk20a *g); * @param g [in] The GPU driver struct. * * Sets ecc.initialized to true. + * + * @return 0 in all cases. */ int nvgpu_ecc_finalize_support(struct gk20a *g);