patch-2.4.25 linux-2.4.25/drivers/char/drm/drm_os_linux.h

Next file: linux-2.4.25/drivers/char/drm/drm_vm.h
Previous file: linux-2.4.25/drivers/char/drm/drm_memory.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/drivers/char/drm/drm_os_linux.h linux-2.4.25/drivers/char/drm/drm_os_linux.h
@@ -13,12 +13,10 @@
 		return -EFAULT
 
 
-#warning the author of this code needs to read up on list_entry
 #define DRM_GETSAREA()							 \
 do { 									 \
-	struct list_head *list;						 \
-	list_for_each( list, &dev->maplist->head ) {			 \
-		drm_map_list_t *entry = (drm_map_list_t *)list;		 \
+	drm_map_list_t *entry;						 \
+	list_for_each_entry( entry, &dev->maplist->head, head ) {	 \
 		if ( entry->map &&					 \
 		     entry->map->type == _DRM_SHM &&			 \
 		     (entry->map->flags & _DRM_CONTAINS_LOCK) ) {	 \

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)