diff options
author | Dave Airlie <airlied@linux.ie> | 2007-07-11 16:21:47 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-07-11 16:21:47 +1000 |
commit | 8fc2fdf4c9437576f38e97c2f5b700ec77038984 (patch) | |
tree | d5770478cb93b8ecc0dfa09734887d474cae799b | |
parent | 056219e2fa6664ec83bc258ebcf30f1a7919d423 (diff) |
drm: drop drm_vma_entry_t, drm_magic_entry_t
Signed-off-by: Dave Airlie <airlied@linux.ie>
-rw-r--r-- | drivers/char/drm/drmP.h | 12 | ||||
-rw-r--r-- | drivers/char/drm/drm_auth.c | 10 | ||||
-rw-r--r-- | drivers/char/drm/drm_drv.c | 4 | ||||
-rw-r--r-- | drivers/char/drm/drm_proc.c | 2 | ||||
-rw-r--r-- | drivers/char/drm/drm_vm.c | 6 |
5 files changed, 15 insertions, 19 deletions
diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h index 83d7d14a615..28895283700 100644 --- a/drivers/char/drm/drmP.h +++ b/drivers/char/drm/drmP.h @@ -274,22 +274,18 @@ typedef struct drm_ioctl_desc { int flags; } drm_ioctl_desc_t; -typedef struct drm_devstate { - pid_t owner; /**< X server pid holding x_lock */ -} drm_devstate_t; - -typedef struct drm_magic_entry { +struct drm_magic_entry { struct list_head head; drm_hash_item_t hash_item; struct drm_file *priv; struct drm_magic_entry *next; -} drm_magic_entry_t; +}; -typedef struct drm_vma_entry { +struct drm_vma_entry { struct list_head head; struct vm_area_struct *vma; pid_t pid; -} drm_vma_entry_t; +}; /** * DMA buffer. diff --git a/drivers/char/drm/drm_auth.c b/drivers/char/drm/drm_auth.c index 905b8bda700..52c63548530 100644 --- a/drivers/char/drm/drm_auth.c +++ b/drivers/char/drm/drm_auth.c @@ -48,12 +48,12 @@ static struct drm_file *drm_find_file(struct drm_device * dev, drm_magic_t magic) { struct drm_file *retval = NULL; - drm_magic_entry_t *pt; + struct drm_magic_entry *pt; drm_hash_item_t *hash; mutex_lock(&dev->struct_mutex); if (!drm_ht_find_item(&dev->magiclist, (unsigned long)magic, &hash)) { - pt = drm_hash_entry(hash, drm_magic_entry_t, hash_item); + pt = drm_hash_entry(hash, struct drm_magic_entry, hash_item); retval = pt->priv; } mutex_unlock(&dev->struct_mutex); @@ -74,7 +74,7 @@ static struct drm_file *drm_find_file(struct drm_device * dev, drm_magic_t magic static int drm_add_magic(struct drm_device * dev, struct drm_file * priv, drm_magic_t magic) { - drm_magic_entry_t *entry; + struct drm_magic_entry *entry; DRM_DEBUG("%d\n", magic); @@ -104,7 +104,7 @@ static int drm_add_magic(struct drm_device * dev, struct drm_file * priv, */ static int drm_remove_magic(struct drm_device * dev, drm_magic_t magic) { - drm_magic_entry_t *pt; + struct drm_magic_entry *pt; drm_hash_item_t *hash; DRM_DEBUG("%d\n", magic); @@ -114,7 +114,7 @@ static int drm_remove_magic(struct drm_device * dev, drm_magic_t magic) mutex_unlock(&dev->struct_mutex); return -EINVAL; } - pt = drm_hash_entry(hash, drm_magic_entry_t, hash_item); + pt = drm_hash_entry(hash, struct drm_magic_entry, hash_item); drm_ht_remove_item(&dev->magiclist, hash); list_del(&pt->head); mutex_unlock(&dev->struct_mutex); diff --git a/drivers/char/drm/drm_drv.c b/drivers/char/drm/drm_drv.c index 6c7aae6c5b6..56594fd373b 100644 --- a/drivers/char/drm/drm_drv.c +++ b/drivers/char/drm/drm_drv.c @@ -131,9 +131,9 @@ static drm_ioctl_desc_t drm_ioctls[] = { */ int drm_lastclose(struct drm_device * dev) { - drm_magic_entry_t *pt, *next; + struct drm_magic_entry *pt, *next; drm_map_list_t *r_list, *list_t; - drm_vma_entry_t *vma, *vma_temp; + struct drm_vma_entry *vma, *vma_temp; int i; DRM_DEBUG("\n"); diff --git a/drivers/char/drm/drm_proc.c b/drivers/char/drm/drm_proc.c index 38328744928..4e234a2134a 100644 --- a/drivers/char/drm/drm_proc.c +++ b/drivers/char/drm/drm_proc.c @@ -478,7 +478,7 @@ static int drm__vma_info(char *buf, char **start, off_t offset, int request, { struct drm_device *dev = (struct drm_device *) data; int len = 0; - drm_vma_entry_t *pt; + struct drm_vma_entry *pt; struct vm_area_struct *vma; #if defined(__i386__) unsigned int pgprot; diff --git a/drivers/char/drm/drm_vm.c b/drivers/char/drm/drm_vm.c index f90ef788eed..25f3bd11212 100644 --- a/drivers/char/drm/drm_vm.c +++ b/drivers/char/drm/drm_vm.c @@ -196,7 +196,7 @@ static void drm_vm_shm_close(struct vm_area_struct *vma) { struct drm_file *priv = vma->vm_file->private_data; struct drm_device *dev = priv->head->dev; - drm_vma_entry_t *pt, *temp; + struct drm_vma_entry *pt, *temp; struct drm_map *map; drm_map_list_t *r_list; int found_maps = 0; @@ -407,7 +407,7 @@ static void drm_vm_open_locked(struct vm_area_struct *vma) { struct drm_file *priv = vma->vm_file->private_data; struct drm_device *dev = priv->head->dev; - drm_vma_entry_t *vma_entry; + struct drm_vma_entry *vma_entry; DRM_DEBUG("0x%08lx,0x%08lx\n", vma->vm_start, vma->vm_end - vma->vm_start); @@ -443,7 +443,7 @@ static void drm_vm_close(struct vm_area_struct *vma) { struct drm_file *priv = vma->vm_file->private_data; struct drm_device *dev = priv->head->dev; - drm_vma_entry_t *pt, *temp; + struct drm_vma_entry *pt, *temp; DRM_DEBUG("0x%08lx,0x%08lx\n", vma->vm_start, vma->vm_end - vma->vm_start); |