From 5f74aa99e068fd5a84798d4909b1ee04c8821731 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Thu, 7 Jun 2018 14:08:11 -0700 Subject: gpu: nvgpu: export APIs to allocate/destroy context buffers Export below APIs in gr_gk20a.h header gk20a_gr_alloc_ctx_buffer() gk20a_gr_destroy_ctx_buffer() Jira NVGPUT-27 Change-Id: Ia181a3f464ffbc9abe12963dd709cebee9e7dbc9 Signed-off-by: Deepak Nibade Reviewed-on: https://git-master.nvidia.com/r/1743364 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 5d9e3218..37ac8748 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -2505,7 +2505,7 @@ int gr_gk20a_init_ctx_state(struct gk20a *g) return 0; } -static void gk20a_gr_destroy_ctx_buffer(struct gk20a *g, +void gk20a_gr_destroy_ctx_buffer(struct gk20a *g, struct gr_ctx_buffer_desc *desc) { if (!desc) @@ -2514,7 +2514,7 @@ static void gk20a_gr_destroy_ctx_buffer(struct gk20a *g, desc->destroy = NULL; } -static int gk20a_gr_alloc_ctx_buffer(struct gk20a *g, +int gk20a_gr_alloc_ctx_buffer(struct gk20a *g, struct gr_ctx_buffer_desc *desc, size_t size) { -- cgit v1.2.2