[<prev] [next>] [day] [month] [year] [list]
Message-ID: <AANLkTi=VfZrWzCmij+_a=YVLNNV9U7Udqm=3tUt2-cQx@mail.gmail.com>
Date: Wed, 22 Sep 2010 17:53:38 +0100
From: Daniel J Blueman <daniel.blueman@...il.com>
To: David Airlie <airlied@...ux.ie>
Cc: dri-devel@...ts.freedesktop.org,
Linux Kernel <linux-kernel@...r.kernel.org>,
Alex Deucher <alexdeucher@...il.com>
Subject: [2.6.36-rc5] DRM fixes...
Correct function storage class, and correct assignment type.
Signed-off-by: Daniel J Blueman <daniel.blueman@...il.com>
Reviewed-by: Alex Deucher <alexdeucher@...il.com>
diff --git a/drivers/gpu/drm/drm_buffer.c b/drivers/gpu/drm/drm_buffer.c
index 55d03ed..687de5f 100644
--- a/drivers/gpu/drm/drm_buffer.c
+++ b/drivers/gpu/drm/drm_buffer.c
@@ -98,7 +98,7 @@ EXPORT_SYMBOL(drm_buffer_alloc);
* user_data: A pointer the data that is copied to the buffer.
* size: The Number of bytes to copy.
*/
-extern int drm_buffer_copy_from_user(struct drm_buffer *buf,
+int drm_buffer_copy_from_user(struct drm_buffer *buf,
void __user *user_data, int size)
{
int nr_pages = size / PAGE_SIZE + 1;
@@ -163,7 +163,7 @@ void *drm_buffer_read_object(struct drm_buffer *buf,
{
int idx = drm_buffer_index(buf);
int page = drm_buffer_page(buf);
- void *obj = 0;
+ void *obj = NULL;
if (idx + objsize <= PAGE_SIZE) {
obj = &buf->data[page][idx];
--
Daniel J Blueman
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists