From 721315298b0d02cedfd186ce3b61da1acd4020b8 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Thu, 26 Oct 2017 15:44:43 -0700 Subject: gpu: nvgpu: Make alloc_obj_ctx args Linux specific Use nvgpu_alloc_obj_ctx_args structure specific to Linux code only. Pass the fields of the structure as separate arguments to all common functions. gr_ops_gp10b.h referred to the struct, but it's not used anywhere, so delete the file. JIRA NVGPU-259 Change-Id: Idba78d48de1c30f205a42da2fe47a9f8c03735f1 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1586563 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/vgpu/gr_vgpu.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/vgpu/gr_vgpu.h') diff --git a/drivers/gpu/nvgpu/vgpu/gr_vgpu.h b/drivers/gpu/nvgpu/vgpu/gr_vgpu.h index 5a5e0928..b43e334a 100644 --- a/drivers/gpu/nvgpu/vgpu/gr_vgpu.h +++ b/drivers/gpu/nvgpu/vgpu/gr_vgpu.h @@ -27,7 +27,6 @@ struct gk20a; struct channel_gk20a; -struct nvgpu_alloc_obj_ctx_args; struct gr_gk20a; struct gr_zcull_info; struct zbc_entry; @@ -36,8 +35,7 @@ struct dbg_session_gk20a; void vgpu_gr_detect_sm_arch(struct gk20a *g); void vgpu_gr_free_channel_ctx(struct channel_gk20a *c, bool is_tsg); -int vgpu_gr_alloc_obj_ctx(struct channel_gk20a *c, - struct nvgpu_alloc_obj_ctx_args *args); +int vgpu_gr_alloc_obj_ctx(struct channel_gk20a *c, u32 class_num, u32 flags); int vgpu_gr_bind_ctxsw_zcull(struct gk20a *g, struct gr_gk20a *gr, struct channel_gk20a *c, u64 zcull_va, u32 mode); -- cgit v1.2.2