summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2006-10-02 15:33:19 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2006-10-02 15:42:07 +0200
commit16be6ba63a41f03e98a741464d3b51eefb277373 (patch)
treef4ef9994f1bf2a1f7bafbddf54ae60296ae9d617 /shared-core
parenteacedf41a65f135722e7bee6f1a66a803619237f (diff)
Fix type of second argument to spin_lock_irqsave().
(cherry picked from f6238cf6244b32bd84e3d2819963d7f5473867c8 commit)
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/drm_drawable.c8
-rw-r--r--shared-core/i915_irq.c5
2 files changed, 7 insertions, 6 deletions
diff --git a/shared-core/drm_drawable.c b/shared-core/drm_drawable.c
index d203b244..0817e321 100644
--- a/shared-core/drm_drawable.c
+++ b/shared-core/drm_drawable.c
@@ -43,7 +43,7 @@
int drm_adddraw(DRM_IOCTL_ARGS)
{
DRM_DEVICE;
- unsigned int irqflags;
+ unsigned long irqflags;
int i, j;
u32 *bitfield = dev->drw_bitfield;
unsigned int bitfield_length = dev->drw_bitfield_length;
@@ -134,7 +134,7 @@ int drm_rmdraw(DRM_IOCTL_ARGS)
drm_draw_t draw;
int id, idx;
unsigned int shift;
- unsigned int irqflags;
+ unsigned long irqflags;
u32 *bitfield = dev->drw_bitfield;
unsigned int bitfield_length = dev->drw_bitfield_length;
drm_drawable_info_t **info = dev->drw_info;
@@ -220,9 +220,9 @@ int drm_rmdraw(DRM_IOCTL_ARGS)
int drm_update_drawable_info(DRM_IOCTL_ARGS) {
DRM_DEVICE;
drm_update_draw_t update;
- unsigned int id, idx, shift;
+ unsigned int id, idx, shift, bitfield_length = dev->drw_bitfield_length;
u32 *bitfield = dev->drw_bitfield;
- unsigned int irqflags, bitfield_length = dev->drw_bitfield_length;
+ unsigned long irqflags;
drm_drawable_info_t *info;
drm_clip_rect_t *rects;
int err;
diff --git a/shared-core/i915_irq.c b/shared-core/i915_irq.c
index 71b7230f..bc52a95c 100644
--- a/shared-core/i915_irq.c
+++ b/shared-core/i915_irq.c
@@ -45,7 +45,7 @@
static void i915_vblank_tasklet(drm_device_t *dev)
{
drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
- unsigned int irqflags;
+ unsigned long irqflags;
struct list_head *list, *tmp;
DRM_DEBUG("\n");
@@ -417,7 +417,8 @@ int i915_vblank_swap(DRM_IOCTL_ARGS)
drm_i915_private_t *dev_priv = dev->dev_private;
drm_i915_vblank_swap_t swap;
drm_i915_vbl_swap_t *vbl_swap;
- unsigned int pipe, seqtype, irqflags, curseq;
+ unsigned int pipe, seqtype, curseq;
+ unsigned long irqflags;
struct list_head *list;
if (!dev_priv) {