mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-09 03:58:05 +02:00
Add conditional definition of list_for_each_safe for earlier kernels.
This commit is contained in:
parent
2f11e6b84f
commit
5d63766f92
2 changed files with 9 additions and 5 deletions
|
|
@ -34,8 +34,6 @@
|
|||
#include "mach64_drv.h"
|
||||
|
||||
#include <linux/interrupt.h> /* For task queue support */
|
||||
#include <linux/delay.h>
|
||||
#include <linux/list.h>
|
||||
|
||||
int mach64_do_cleanup_dma( drm_device_t *dev );
|
||||
int mach64_handle_dma( drm_mach64_private_t *dev_priv );
|
||||
|
|
@ -180,10 +178,10 @@ int mach64_do_wait_for_dma( drm_mach64_private_t *dev_priv )
|
|||
}
|
||||
udelay( 1 );
|
||||
}
|
||||
|
||||
|
||||
if (ret != 0)
|
||||
DRM_INFO( "do_wait_for_dma failed! GUI_STAT=0x%08x\n", MACH64_READ( MACH64_GUI_STAT ) );
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,8 +32,14 @@
|
|||
#ifndef __MACH64_DRV_H__
|
||||
#define __MACH64_DRV_H__
|
||||
|
||||
#include <linux/list.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/list.h>
|
||||
|
||||
#ifndef list_for_each_safe
|
||||
#define list_for_each_safe(pos, n, head) \
|
||||
for (pos = (head)->next, n = pos->next; pos != (head); \
|
||||
pos = n, n = pos->next)
|
||||
#endif
|
||||
|
||||
/* Development driver options - FIXME: remove these when not needed */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue