Skip to content

Commit ae69340

Browse files
committed
Merge branch 'drm-armada-fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-cubox into drm-fixes
fix for kfifo api change. * 'drm-armada-fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-cubox: DRM: armada: fix use of kfifo_put()
2 parents 7a4ee32 + d13c46c commit ae69340

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

‎drivers/gpu/drm/armada/armada_drv.c‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,7 @@ void __armada_drm_queue_unref_work(struct drm_device *dev,
6868
{
6969
struct armada_private *priv = dev->dev_private;
7070

71-
/*
72-
* Yes, we really must jump through these hoops just to store a
73-
* _pointer_ to something into the kfifo. This is utterly insane
74-
* and idiotic, because it kfifo requires the _data_ pointed to by
75-
* the pointer const, not the pointer itself. Not only that, but
76-
* you have to pass a pointer _to_ the pointer you want stored.
77-
*/
78-
const struct drm_framebuffer *silly_api_alert = fb;
79-
WARN_ON(!kfifo_put(&priv->fb_unref, &silly_api_alert));
71+
WARN_ON(!kfifo_put(&priv->fb_unref, fb));
8072
schedule_work(&priv->fb_unref_work);
8173
}
8274

0 commit comments

Comments
 (0)