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
-  Lines: 15
-  Date:
2004-02-18 05:36:31.000000000 -0800
-  Orig file: 
linux-2.4.24/drivers/char/drm/drm_os_linux.h
-  Orig date: 
2003-11-28 10:26:20.000000000 -0800
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)