diff options
author | Paul McQuade <paulmcquad@gmail.com> | 2018-03-18 20:52:22 -0400 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2018-03-19 09:31:20 -0400 |
commit | 2bcfcbfc1ddd59c9335de5d4dcd20c45354535fc (patch) | |
tree | 4da57eb7ff7aa5e8e25e006d0c0e52bb9dbb7aab | |
parent | e007488b2fbbda00bc504e37ffdc8866c8f59c5e (diff) |
drm: dma_bufs: Fixed checkpatch issues
Fix a couple of checkpatch issues
Signed-off-by: Paul McQuade <paulmcquad@gmail.com>
[seanpaul squashed series of 4 into one patch, and changed commit msg]
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180319005225.1545-1-paulmcquad@gmail.com
-rw-r--r-- | drivers/gpu/drm/drm_bufs.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gpu/drm/drm_bufs.c b/drivers/gpu/drm/drm_bufs.c index 1ee84dd802d4..ba8cfe65c65b 100644 --- a/drivers/gpu/drm/drm_bufs.c +++ b/drivers/gpu/drm/drm_bufs.c | |||
@@ -129,10 +129,10 @@ static int drm_map_handle(struct drm_device *dev, struct drm_hash_item *hash, | |||
129 | * type. Adds the map to the map list drm_device::maplist. Adds MTRR's where | 129 | * type. Adds the map to the map list drm_device::maplist. Adds MTRR's where |
130 | * applicable and if supported by the kernel. | 130 | * applicable and if supported by the kernel. |
131 | */ | 131 | */ |
132 | static int drm_addmap_core(struct drm_device * dev, resource_size_t offset, | 132 | static int drm_addmap_core(struct drm_device *dev, resource_size_t offset, |
133 | unsigned int size, enum drm_map_type type, | 133 | unsigned int size, enum drm_map_type type, |
134 | enum drm_map_flags flags, | 134 | enum drm_map_flags flags, |
135 | struct drm_map_list ** maplist) | 135 | struct drm_map_list **maplist) |
136 | { | 136 | { |
137 | struct drm_local_map *map; | 137 | struct drm_local_map *map; |
138 | struct drm_map_list *list; | 138 | struct drm_map_list *list; |
@@ -224,7 +224,7 @@ static int drm_addmap_core(struct drm_device * dev, resource_size_t offset, | |||
224 | case _DRM_SHM: | 224 | case _DRM_SHM: |
225 | list = drm_find_matching_map(dev, map); | 225 | list = drm_find_matching_map(dev, map); |
226 | if (list != NULL) { | 226 | if (list != NULL) { |
227 | if(list->map->size != map->size) { | 227 | if (list->map->size != map->size) { |
228 | DRM_DEBUG("Matching maps of type %d with " | 228 | DRM_DEBUG("Matching maps of type %d with " |
229 | "mismatched sizes, (%ld vs %ld)\n", | 229 | "mismatched sizes, (%ld vs %ld)\n", |
230 | map->type, map->size, list->map->size); | 230 | map->type, map->size, list->map->size); |
@@ -361,7 +361,7 @@ static int drm_addmap_core(struct drm_device * dev, resource_size_t offset, | |||
361 | return 0; | 361 | return 0; |
362 | } | 362 | } |
363 | 363 | ||
364 | int drm_legacy_addmap(struct drm_device * dev, resource_size_t offset, | 364 | int drm_legacy_addmap(struct drm_device *dev, resource_size_t offset, |
365 | unsigned int size, enum drm_map_type type, | 365 | unsigned int size, enum drm_map_type type, |
366 | enum drm_map_flags flags, struct drm_local_map **map_ptr) | 366 | enum drm_map_flags flags, struct drm_local_map **map_ptr) |
367 | { | 367 | { |
@@ -637,8 +637,8 @@ int drm_legacy_rmmap_ioctl(struct drm_device *dev, void *data, | |||
637 | * | 637 | * |
638 | * Frees any pages and buffers associated with the given entry. | 638 | * Frees any pages and buffers associated with the given entry. |
639 | */ | 639 | */ |
640 | static void drm_cleanup_buf_error(struct drm_device * dev, | 640 | static void drm_cleanup_buf_error(struct drm_device *dev, |
641 | struct drm_buf_entry * entry) | 641 | struct drm_buf_entry *entry) |
642 | { | 642 | { |
643 | int i; | 643 | int i; |
644 | 644 | ||
@@ -1446,8 +1446,8 @@ int drm_legacy_freebufs(struct drm_device *dev, void *data, | |||
1446 | int __drm_legacy_mapbufs(struct drm_device *dev, void *data, int *p, | 1446 | int __drm_legacy_mapbufs(struct drm_device *dev, void *data, int *p, |
1447 | void __user **v, | 1447 | void __user **v, |
1448 | int (*f)(void *, int, unsigned long, | 1448 | int (*f)(void *, int, unsigned long, |
1449 | struct drm_buf *), | 1449 | struct drm_buf *), |
1450 | struct drm_file *file_priv) | 1450 | struct drm_file *file_priv) |
1451 | { | 1451 | { |
1452 | struct drm_device_dma *dma = dev->dma; | 1452 | struct drm_device_dma *dma = dev->dma; |
1453 | int retcode = 0; | 1453 | int retcode = 0; |