drm: i810_dma.c: fix pointer arithmetic for 64-bit target
authorDave Airlie <airlied@linux.ie>
Sat, 19 Aug 2006 06:31:34 +0000 (16:31 +1000)
committerDave Airlie <airlied@linux.ie>
Mon, 28 Aug 2006 01:26:57 +0000 (11:26 +1000)
commit27c72b67eceec7517c34d2ca456c7474a353d6e6
tree297cba660f7b0c4a60c06920f5c09505de03065c
parentb99e332236ca5fcc11e8d7c89566bbf3bcf959ee
drm: i810_dma.c: fix pointer arithmetic for 64-bit target

First warning result from open-coded PTR_ERR,
the rest is caused by code like this:

*(u32 *) ((u32) buf_priv->kernel_virtual + used)

I've also fixed a missing PTR_ERR in i830_dma.c

From: Denis Vlasenko <vda.linux@googlemail.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
linux-core/i810_dma.c
linux-core/i830_dma.c