From 10444e06d4f4edaf8e8cd9370f450ce7c047efac Mon Sep 17 00:00:00 2001 From: Leif Delgass Date: Tue, 8 Apr 2003 01:30:43 +0000 Subject: Use list_entry() to get container struct from struct list_head pointers. Build fix for RedHat 9 kernel (5 args to remap_page_range()). --- linux/drm_bufs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/drm_bufs.h') diff --git a/linux/drm_bufs.h b/linux/drm_bufs.h index b4e73699..b27987f1 100644 --- a/linux/drm_bufs.h +++ b/linux/drm_bufs.h @@ -211,7 +211,7 @@ int DRM(rmmap)(struct inode *inode, struct file *filp, down(&dev->struct_sem); list = &dev->maplist->head; 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 && -- cgit v1.2.3