summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-07-02 13:59:36 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-06 00:48:47 -0400
commit3e12cea363c8a09038e870d7df9c047294a0a6a1 (patch)
treee45491378fd00ad36785bb54cb45457fa7283990
parentbd5c2cef161fc0fe2a7c3dbad58af7794274e381 (diff)
gpu: nvgpu: Clean up include/nvgpu/vidmem.h
vidmem.h had a forward declaration for a Linux specific struct work_struct. Removed that. vidmem.h also #included nvgpu_mem.h even though there was no use for it. As a follow-up css_gr_gk20a.h did refer to nvgpu_mem but did not #include it, so added that. Change-Id: Ifea88adae86ed95302465641821fbb107d7cc233 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1768260 Reviewed-by: Alex Waterman <alexw@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/gk20a/css_gr_gk20a.h3
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/vidmem.h3
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.h
index 8aefe848..bf8890bd 100644
--- a/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.h
@@ -25,6 +25,9 @@
25#ifndef CSS_GR_GK20A_H 25#ifndef CSS_GR_GK20A_H
26#define CSS_GR_GK20A_H 26#define CSS_GR_GK20A_H
27 27
28#include <nvgpu/nvgpu_mem.h>
29#include <nvgpu/list.h>
30
28/* the minimal size of HW buffer - should be enough to avoid HW overflows */ 31/* the minimal size of HW buffer - should be enough to avoid HW overflows */
29#define CSS_MIN_HW_SNAPSHOT_SIZE (8 * 1024 * 1024) 32#define CSS_MIN_HW_SNAPSHOT_SIZE (8 * 1024 * 1024)
30 33
diff --git a/drivers/gpu/nvgpu/include/nvgpu/vidmem.h b/drivers/gpu/nvgpu/include/nvgpu/vidmem.h
index 62c970d3..4809bcd4 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/vidmem.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/vidmem.h
@@ -25,9 +25,6 @@
25 25
26#include <nvgpu/types.h> 26#include <nvgpu/types.h>
27#include <nvgpu/errno.h> 27#include <nvgpu/errno.h>
28#include <nvgpu/nvgpu_mem.h>
29
30struct work_struct;
31 28
32struct gk20a; 29struct gk20a;
33struct mm_gk20a; 30struct mm_gk20a;