diff options
author | Sourab Gupta <sourabg@nvidia.com> | 2017-09-25 02:49:50 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-09-26 19:10:02 -0400 |
commit | 8d8ae609ad8b2042b3b8e388b02efa79b6c57a18 (patch) | |
tree | f53cad1015e9591598d4744a47742c8e0061013d /drivers/gpu/nvgpu/include | |
parent | e794b02d6a3381b1979c0bf8b10f44ba366f06e0 (diff) |
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 <sourabg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1567713
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ | |||
34 | 34 | ||
35 | struct page; | 35 | struct page; |
36 | struct sg_table; | 36 | struct sg_table; |
37 | struct nvgpu_sgt; | ||
37 | 38 | ||
38 | struct gk20a; | 39 | struct gk20a; |
39 | struct nvgpu_allocator; | 40 | struct nvgpu_allocator; |