summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c4
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.h5
2 files changed, 7 insertions, 2 deletions
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)
2505 return 0; 2505 return 0;
2506} 2506}
2507 2507
2508static void gk20a_gr_destroy_ctx_buffer(struct gk20a *g, 2508void gk20a_gr_destroy_ctx_buffer(struct gk20a *g,
2509 struct gr_ctx_buffer_desc *desc) 2509 struct gr_ctx_buffer_desc *desc)
2510{ 2510{
2511 if (!desc) 2511 if (!desc)
@@ -2514,7 +2514,7 @@ static void gk20a_gr_destroy_ctx_buffer(struct gk20a *g,
2514 desc->destroy = NULL; 2514 desc->destroy = NULL;
2515} 2515}
2516 2516
2517static int gk20a_gr_alloc_ctx_buffer(struct gk20a *g, 2517int gk20a_gr_alloc_ctx_buffer(struct gk20a *g,
2518 struct gr_ctx_buffer_desc *desc, 2518 struct gr_ctx_buffer_desc *desc,
2519 size_t size) 2519 size_t size)
2520{ 2520{
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
index d25c845c..01c7f43d 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
@@ -843,4 +843,9 @@ int gr_gk20a_create_priv_addr_table(struct gk20a *g,
843void gr_gk20a_split_fbpa_broadcast_addr(struct gk20a *g, u32 addr, 843void gr_gk20a_split_fbpa_broadcast_addr(struct gk20a *g, u32 addr,
844 u32 num_fbpas, 844 u32 num_fbpas,
845 u32 *priv_addr_table, u32 *t); 845 u32 *priv_addr_table, u32 *t);
846
847void gk20a_gr_destroy_ctx_buffer(struct gk20a *g,
848 struct gr_ctx_buffer_desc *desc);
849int gk20a_gr_alloc_ctx_buffer(struct gk20a *g,
850 struct gr_ctx_buffer_desc *desc, size_t size);
846#endif /*__GR_GK20A_H__*/ 851#endif /*__GR_GK20A_H__*/