Skip to content

Commit b841aed

Browse files
committed
drm/omap: remove warn from debugfs
Patch dfe96dd (omapdrm: simplify locking in the fb debugfs file) removed taking locks when using omapdrm's debugfs to dump fb objects. However, in omap_gem_describe we give a WARN is the lock has not been taken, so that WARN is now seen every time omapdrm debugfs is used. So, presuming the removal of locks is ok, we can also remove the WARN. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
1 parent 772cdc9 commit b841aed

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎drivers/gpu/drm/omapdrm/omap_gem.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -980,12 +980,9 @@ int omap_gem_resume(struct device *dev)
980980
#ifdef CONFIG_DEBUG_FS
981981
void omap_gem_describe(struct drm_gem_object *obj, struct seq_file *m)
982982
{
983-
struct drm_device *dev = obj->dev;
984983
struct omap_gem_object *omap_obj = to_omap_bo(obj);
985984
uint64_t off;
986985

987-
WARN_ON(!mutex_is_locked(&dev->struct_mutex));
988-
989986
off = drm_vma_node_start(&obj->vma_node);
990987

991988
seq_printf(m, "%08x: %2d (%2d) %08llx %08Zx (%2d) %p %4d",

0 commit comments

Comments
 (0)