]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/gpu/drm/i915/i915_debugfs.c
Merge tag 'drm-intel-next-2017-05-29' of git://anongit.freedesktop.org/git/drm-intel...
[karo-tx-linux.git] / drivers / gpu / drm / i915 / i915_debugfs.c
index 0615237d1ceab203c9cdf3ce29ce6858aebddecf..7e0816ccdc217debbd597cc213d2c62129a152d8 100644 (file)
@@ -229,7 +229,7 @@ static int i915_gem_stolen_list_info(struct seq_file *m, void *data)
        int ret;
 
        total = READ_ONCE(dev_priv->mm.object_count);
-       objects = drm_malloc_ab(total, sizeof(*objects));
+       objects = kvmalloc_array(total, sizeof(*objects), GFP_KERNEL);
        if (!objects)
                return -ENOMEM;
 
@@ -274,7 +274,7 @@ static int i915_gem_stolen_list_info(struct seq_file *m, void *data)
 
        mutex_unlock(&dev->struct_mutex);
 out:
-       drm_free_large(objects);
+       kvfree(objects);
        return ret;
 }
 
@@ -3118,17 +3118,17 @@ static const char *plane_rotation(unsigned int rotation)
 {
        static char buf[48];
        /*
-        * According to doc only one DRM_ROTATE_ is allowed but this
+        * According to doc only one DRM_MODE_ROTATE_ is allowed but this
         * will print them all to visualize if the values are misused
         */
        snprintf(buf, sizeof(buf),
                 "%s%s%s%s%s%s(0x%08x)",
-                (rotation & DRM_ROTATE_0) ? "0 " : "",
-                (rotation & DRM_ROTATE_90) ? "90 " : "",
-                (rotation & DRM_ROTATE_180) ? "180 " : "",
-                (rotation & DRM_ROTATE_270) ? "270 " : "",
-                (rotation & DRM_REFLECT_X) ? "FLIPX " : "",
-                (rotation & DRM_REFLECT_Y) ? "FLIPY " : "",
+                (rotation & DRM_MODE_ROTATE_0) ? "0 " : "",
+                (rotation & DRM_MODE_ROTATE_90) ? "90 " : "",
+                (rotation & DRM_MODE_ROTATE_180) ? "180 " : "",
+                (rotation & DRM_MODE_ROTATE_270) ? "270 " : "",
+                (rotation & DRM_MODE_REFLECT_X) ? "FLIPX " : "",
+                (rotation & DRM_MODE_REFLECT_Y) ? "FLIPY " : "",
                 rotation);
 
        return buf;