[PATCH i-g-t] lib: Unexport gem_gtt_type()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nobody uses the function directly, instead using the various helpers to
determine if ppgtt is present.

Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Cc: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx>
---
 lib/ioctl_wrappers.c | 5 ++---
 lib/ioctl_wrappers.h | 1 -
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c
index d992e015b..0929c43fe 100644
--- a/lib/ioctl_wrappers.c
+++ b/lib/ioctl_wrappers.c
@@ -954,12 +954,11 @@ bool gem_bo_busy(int fd, uint32_t handle)
  * Feature test macro to check what type of gtt is being used by the kernel:
  * 0 - global gtt
  * 1 - aliasing ppgtt
- * 2 - full ppgtt, limited to 32bit address space
- * 3 - full ppgtt, 64bit address space
+ * 2 - full ppgtt
  *
  * Returns: Type of gtt being used.
  */
-int gem_gtt_type(int fd)
+static int gem_gtt_type(int fd)
 {
 	struct drm_i915_getparam gp;
 	int val = 0;
diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h
index 872e30563..c4e1956c5 100644
--- a/lib/ioctl_wrappers.h
+++ b/lib/ioctl_wrappers.h
@@ -147,7 +147,6 @@ bool gem_has_bsd(int fd);
 bool gem_has_blt(int fd);
 bool gem_has_vebox(int fd);
 bool gem_has_bsd2(int fd);
-int gem_gtt_type(int fd);
 bool gem_uses_ppgtt(int fd);
 bool gem_uses_full_ppgtt(int fd);
 int gem_gpu_reset_type(int fd);
-- 
2.19.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux