summaryrefslogtreecommitdiff
path: root/linux-core/drm_context.c
diff options
context:
space:
mode:
authorLeif Delgass <ldelgass@users.sourceforge.net>2003-04-08 01:30:43 +0000
committerLeif Delgass <ldelgass@users.sourceforge.net>2003-04-08 01:30:43 +0000
commit10444e06d4f4edaf8e8cd9370f450ce7c047efac (patch)
tree294d347bd34529e341a363bc093287b5b236c601 /linux-core/drm_context.c
parent3f7769921bd414f489d4487a5760a8d814efd51d (diff)
Use list_entry() to get container struct from struct list_head pointers.
Build fix for RedHat 9 kernel (5 args to remap_page_range()).
Diffstat (limited to 'linux-core/drm_context.c')
-rw-r--r--linux-core/drm_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_context.c b/linux-core/drm_context.c
index 39267b14..88b485ff 100644
--- a/linux-core/drm_context.c
+++ b/linux-core/drm_context.c
@@ -195,7 +195,7 @@ int DRM(setsareactx)(struct inode *inode, struct file *filp,
down(&dev->struct_sem);
list_for_each(list, &dev->maplist->head) {
- r_list = (drm_map_list_t *)list;
+ r_list = list_entry(list, drm_map_list_t, head);
if(r_list->map &&
r_list->map->handle == request.handle)
goto found;