Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/nouveau Flush unused function.



details:   https://anonhg.NetBSD.org/src/rev/5eddcf690e47
branches:  trunk
changeset: 813474:5eddcf690e47
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Jan 29 23:58:22 2016 +0000

description:
Flush unused function.

Found by joerg.

diffstat:

 sys/external/bsd/drm2/dist/drm/nouveau/nouveau_gem.c |  17 ++---------------
 1 files changed, 2 insertions(+), 15 deletions(-)

diffs (38 lines):

diff -r c0f26442724f -r 5eddcf690e47 sys/external/bsd/drm2/dist/drm/nouveau/nouveau_gem.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_gem.c      Fri Jan 29 22:49:06 2016 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_gem.c      Fri Jan 29 23:58:22 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_gem.c,v 1.3 2014/08/23 08:03:33 riastradh Exp $        */
+/*     $NetBSD: nouveau_gem.c,v 1.4 2016/01/29 23:58:22 riastradh Exp $        */
 
 /*
  * Copyright (C) 2008 Ben Skeggs.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_gem.c,v 1.3 2014/08/23 08:03:33 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_gem.c,v 1.4 2016/01/29 23:58:22 riastradh Exp $");
 
 #include <subdev/fb.h>
 
@@ -885,19 +885,6 @@
        return nouveau_abi16_put(abi16, ret);
 }
 
-static inline uint32_t
-domain_to_ttm(struct nouveau_bo *nvbo, uint32_t domain)
-{
-       uint32_t flags = 0;
-
-       if (domain & NOUVEAU_GEM_DOMAIN_VRAM)
-               flags |= TTM_PL_FLAG_VRAM;
-       if (domain & NOUVEAU_GEM_DOMAIN_GART)
-               flags |= TTM_PL_FLAG_TT;
-
-       return flags;
-}
-
 int
 nouveau_gem_ioctl_cpu_prep(struct drm_device *dev, void *data,
                           struct drm_file *file_priv)



Home | Main Index | Thread Index | Old Index