diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/nvgpu_mem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c b/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c index 2b3cb6fd..eb64ecd3 100644 --- a/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c +++ b/drivers/gpu/nvgpu/common/linux/nvgpu_mem.c | |||
@@ -478,6 +478,7 @@ int __nvgpu_mem_create_from_pages(struct gk20a *g, struct nvgpu_mem *dest, | |||
478 | return 0; | 478 | return 0; |
479 | } | 479 | } |
480 | 480 | ||
481 | #ifdef CONFIG_TEGRA_GK20A_NVHOST | ||
481 | int __nvgpu_mem_create_from_phys(struct gk20a *g, struct nvgpu_mem *dest, | 482 | int __nvgpu_mem_create_from_phys(struct gk20a *g, struct nvgpu_mem *dest, |
482 | u64 src_phys, int nr_pages) | 483 | u64 src_phys, int nr_pages) |
483 | { | 484 | { |
@@ -496,6 +497,7 @@ int __nvgpu_mem_create_from_phys(struct gk20a *g, struct nvgpu_mem *dest, | |||
496 | 497 | ||
497 | return ret; | 498 | return ret; |
498 | } | 499 | } |
500 | #endif | ||
499 | 501 | ||
500 | static void *nvgpu_mem_linux_sgl_next(void *sgl) | 502 | static void *nvgpu_mem_linux_sgl_next(void *sgl) |
501 | { | 503 | { |