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/gamma_dma.c | |
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/gamma_dma.c')
-rw-r--r-- | linux/gamma_dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/gamma_dma.c b/linux/gamma_dma.c index a3c21d11..5b4d84bc 100644 --- a/linux/gamma_dma.c +++ b/linux/gamma_dma.c @@ -607,7 +607,7 @@ static int gamma_do_init_dma( drm_device_t *dev, drm_gamma_init_t *init ) memset( dev_priv, 0, sizeof(drm_gamma_private_t) ); list_for_each(list, &dev->maplist->head) { - drm_map_list_t *r_list = (drm_map_list_t *)list; + drm_map_list_t *r_list = list_entry(list, drm_map_list_t, head); if( r_list->map && r_list->map->type == _DRM_SHM && r_list->map->flags & _DRM_CONTAINS_LOCK ) { @@ -811,7 +811,7 @@ int gamma_setsareactx(struct inode *inode, struct file *filp, down(&dev->struct_sem); r_list = 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); if(r_list->map && r_list->map->handle == request.handle) break; } |