From 8d8ae609ad8b2042b3b8e388b02efa79b6c57a18 Mon Sep 17 00:00:00 2001 From: Sourab Gupta Date: Mon, 25 Sep 2017 12:19:50 +0530 Subject: gpu: nvgpu: Add forward declaration of nvgpu_sgt The patch adds a forward declaration of nvgpu_sgt in nvgpu_mem.h header file to be referred inside struct nvgpu_sgt_ops. This is to prevent compilation issue while including this header elsewhere without explicit forward declaration. Change-Id: I5cfe5c723e961813425be5301d9bb770bb10c896 Signed-off-by: Sourab Gupta Reviewed-on: https://git-master.nvidia.com/r/1567713 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers') diff --git a/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h b/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h index cda97ed2..15414278 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h +++ b/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h @@ -34,6 +34,7 @@ struct page; struct sg_table; +struct nvgpu_sgt; struct gk20a; struct nvgpu_allocator; -- cgit v1.2.2