diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2007-12-17 09:50:45 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2007-12-17 09:50:45 +1000 |
commit | 2db6400396ea5c8a5ce54fe9e211b9d01a11d506 (patch) | |
tree | aea0a8758756df4b81fe117550720088e2defe8c /shared-core | |
parent | 6180dbda203161b8926513cca4ee963bbbf18cc9 (diff) |
drm: don't cast a pointer to pointer of list_head
The casting is safe only when the list_head member is the first member of
the structure.
Diffstat (limited to 'shared-core')
-rw-r--r-- | shared-core/i915_irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/i915_irq.c b/shared-core/i915_irq.c index ee7c40b5..7e3d3f3b 100644 --- a/shared-core/i915_irq.c +++ b/shared-core/i915_irq.c @@ -719,7 +719,7 @@ int i915_vblank_swap(struct drm_device *dev, void *data, DRM_SPINLOCK_IRQSAVE(&dev_priv->swaps_lock, irqflags); - list_add_tail((struct list_head *)vbl_swap, &dev_priv->vbl_swaps.head); + list_add_tail(&vbl_swap->head, &dev_priv->vbl_swaps.head); dev_priv->swaps_pending++; DRM_SPINUNLOCK_IRQRESTORE(&dev_priv->swaps_lock, irqflags); |