Skip to contentSkip to conversation

gma500: Fix clashes with DRM updates

PATCH In review Alan Cox 3 participants 5 messages Jul 26, 2011 – Aug 2, 2011 Staging

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 gma500: Fix clashes with DRM updates

From: Alan Cox <[email protected]>

The private object support has migrated from gma500 into the DRM core, remove our now clashing copy so -next can build.

---

 drivers/staging/gma500/gem_glue.c |   23 +----------------------
 drivers/staging/gma500/gem_glue.h |    2 --
 2 files changed, 1 insertions(+), 24 deletions(-)
drivers/staging/gma500/gem_glue.c +1 -22
index 779ac1a..daac121 100644
@@ -20,26 +20,6 @@
 #include <drm/drmP.h>
 #include <drm/drm.h>
 
-/**
- * Initialize an already allocated GEM object of the specified size with
- * no GEM provided backing store. Instead the caller is responsible for
- * backing the object and handling it.
- */
-int drm_gem_private_object_init(struct drm_device *dev,
-			struct drm_gem_object *obj, size_t size)
-{
-	BUG_ON((size & (PAGE_SIZE - 1)) != 0);
-
-	obj->dev = dev;
-	obj->filp = NULL;
-
-	kref_init(&obj->refcount);
-	atomic_set(&obj->handle_count, 0);
-	obj->size = size;
-
-	return 0;
-}
-
 void drm_gem_object_release_wrap(struct drm_gem_object *obj)
 {
 	/* Remove the list map if one is present */
@@ -51,8 +31,7 @@ void drm_gem_object_release_wrap(struct drm_gem_object *obj)
 		kfree(list->map);
 		list->map = NULL;
 	}
-	if (obj->filp)
-		drm_gem_object_release(obj);
+	drm_gem_object_release(obj);
 }
 
 /**
drivers/staging/gma500/gem_glue.h +0 -2
index a0f2bc4..ce5ce30 100644
@@ -1,4 +1,2 @@
 extern void drm_gem_object_release_wrap(struct drm_gem_object *obj);
-extern int drm_gem_private_object_init(struct drm_device *dev,
-			struct drm_gem_object *obj, size_t size);
 extern int gem_create_mmap_offset(struct drm_gem_object *obj);
#1 lore raw
Quoted 6 lines · Alan Cox

From: Alan Cox <[email protected]>

The private object support has migrated from gma500 into the DRM core, remove our now clashing copy so -next can build.

This patch is needed in Linus' tree, as it is currently causing a build failure for either i386 or x86_64 allyesconfig.

-hpa

#2 lore raw
Quoted 10 lines · H. Peter Anvin
Quoted 6 lines · Alan Cox

From: Alan Cox <[email protected]>

The private object support has migrated from gma500 into the DRM core, remove our now clashing copy so -next can build.

This patch is needed in Linus' tree, as it is currently causing a build failure for either i386 or x86_64 allyesconfig.

Ick, it is? I don't see that here on my builds, what am I doing wrong?

confused,

greg k-h

#3 lore raw
Quoted 7 lines · Greg KH
Quoted 6 lines · H. Peter Anvin
Quoted 5 lines · Alan Cox

From: Alan Cox <[email protected]>

The private object support has migrated from gma500 into the DRM core, remove our now clashing copy so -next can build.

Quoted 9 lines
Quoted 4 lines
Quoted 1 line

This patch is needed in Linus' tree, as it is currently causing a build failure for either i386 or x86_64 allyesconfig.

Ick, it is? I don't see that here on my builds, what am I doing wrong?

confused,

No idea, but do a "make allyesconfig" on Linus' tree and you'll see it.

-hpa

#4 lore raw
Quoted 13 lines · H. Peter Anvin
Quoted 12 lines · Greg KH
Quoted 10 lines · H. Peter Anvin
Quoted 6 lines · Alan Cox

From: Alan Cox <[email protected]>

The private object support has migrated from gma500 into the DRM core, remove our now clashing copy so -next can build.

This patch is needed in Linus' tree, as it is currently causing a build failure for either i386 or x86_64 allyesconfig.

Quoted 6 lines
Quoted 4 lines

Ick, it is? I don't see that here on my builds, what am I doing wrong?

confused,

No idea, but do a "make allyesconfig" on Linus' tree and you'll see it.

Ah, it's a link error, now I see it. I'll queue it up, and some other staging tree fixes and get them to Linus very soon now.

thanks,

greg k-h