Commit:     d5b0d1b5bda979b077cf011e79fc19677663afc4
Parent:     a96ca105a68bc66c564accdfeb81c36e1d5d46b3
Author:     Li Zefan <[EMAIL PROTECTED]>
AuthorDate: Mon Dec 17 09:47:19 2007 +1000
Committer:  Dave Airlie <[EMAIL PROTECTED]>
CommitDate: Thu Feb 7 15:09:39 2008 +1000

    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.
    Signed-off-by: Li Zefan <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Dave Airlie <[EMAIL PROTECTED]>
 drivers/char/drm/i915_irq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/char/drm/i915_irq.c b/drivers/char/drm/i915_irq.c
index 3f02ff5..b273fe4 100644
--- a/drivers/char/drm/i915_irq.c
+++ b/drivers/char/drm/i915_irq.c
@@ -555,7 +555,7 @@ int i915_vblank_swap(struct drm_device *dev, void *data,
        spin_lock_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);
        spin_unlock_irqrestore(&dev_priv->swaps_lock, irqflags);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to