diff options
author | Leif Delgass <ldelgass@users.sourceforge.net> | 2003-04-08 01:30:43 +0000 |
---|---|---|
committer | Leif Delgass <ldelgass@users.sourceforge.net> | 2003-04-08 01:30:43 +0000 |
commit | 10444e06d4f4edaf8e8cd9370f450ce7c047efac (patch) | |
tree | 294d347bd34529e341a363bc093287b5b236c601 /linux/drm_proc.h | |
parent | 3f7769921bd414f489d4487a5760a8d814efd51d (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/drm_proc.h')
-rw-r--r-- | linux/drm_proc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drm_proc.h b/linux/drm_proc.h index 8524d204..5af8ddea 100644 --- a/linux/drm_proc.h +++ b/linux/drm_proc.h @@ -187,7 +187,7 @@ static int DRM(_vm_info)(char *buf, char **start, off_t offset, int request, "address mtrr\n\n"); i = 0; if (dev->maplist != NULL) list_for_each(list, &dev->maplist->head) { - r_list = (drm_map_list_t *)list; + r_list = list_entry(list, drm_map_list_t, head); map = r_list->map; if(!map) continue; if (map->type < 0 || map->type > 4) type = "??"; |