Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210950
b: refs/heads/master
c: d3147e8
h: refs/heads/master
v: v3
  • Loading branch information
Daniel J Blueman authored and Dave Airlie committed Sep 24, 2010
1 parent 509a3ab commit 4d7b4d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0e57a3cc71884ef38e0568b63e004e2c782ea6d2
refs/heads/master: d3147e86d71e74c93d361988d9441575da71345e
6 changes: 3 additions & 3 deletions trunk/drivers/gpu/drm/drm_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ 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,
void __user *user_data, int size)
int drm_buffer_copy_from_user(struct drm_buffer *buf,
void __user *user_data, int size)
{
int nr_pages = size / PAGE_SIZE + 1;
int idx;
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit 4d7b4d4

Please sign in to comment.