Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/ttm: remove superflous extern attribute from funcs

Extern is the default attribute for functions anyway.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/390972/

+20 -24
+8 -11
include/drm/ttm/ttm_execbuf_util.h
··· 58 58 * Undoes all buffer validation reservations for bos pointed to by 59 59 * the list entries. 60 60 */ 61 - 62 - extern void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, 63 - struct list_head *list); 61 + void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, 62 + struct list_head *list); 64 63 65 64 /** 66 65 * function ttm_eu_reserve_buffers ··· 95 96 * ttm_eu_fence_buffer_objects() when command submission is complete or 96 97 * has failed. 97 98 */ 98 - 99 - extern int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, 100 - struct list_head *list, bool intr, 101 - struct list_head *dups); 99 + int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, 100 + struct list_head *list, bool intr, 101 + struct list_head *dups); 102 102 103 103 /** 104 104 * function ttm_eu_fence_buffer_objects. ··· 111 113 * It also unreserves all buffers, putting them on lru lists. 112 114 * 113 115 */ 114 - 115 - extern void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket, 116 - struct list_head *list, 117 - struct dma_fence *fence); 116 + void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket, 117 + struct list_head *list, 118 + struct dma_fence *fence); 118 119 119 120 #endif
+12 -13
include/drm/ttm/ttm_memory.h
··· 79 79 #endif 80 80 } ttm_mem_glob; 81 81 82 - extern int ttm_mem_global_init(struct ttm_mem_global *glob); 83 - extern void ttm_mem_global_release(struct ttm_mem_global *glob); 84 - extern int ttm_mem_global_alloc(struct ttm_mem_global *glob, uint64_t memory, 82 + int ttm_mem_global_init(struct ttm_mem_global *glob); 83 + void ttm_mem_global_release(struct ttm_mem_global *glob); 84 + int ttm_mem_global_alloc(struct ttm_mem_global *glob, uint64_t memory, 85 + struct ttm_operation_ctx *ctx); 86 + void ttm_mem_global_free(struct ttm_mem_global *glob, uint64_t amount); 87 + int ttm_mem_global_alloc_page(struct ttm_mem_global *glob, 88 + struct page *page, uint64_t size, 89 + struct ttm_operation_ctx *ctx); 90 + void ttm_mem_global_free_page(struct ttm_mem_global *glob, 91 + struct page *page, uint64_t size); 92 + size_t ttm_round_pot(size_t size); 93 + bool ttm_check_under_lowerlimit(struct ttm_mem_global *glob, uint64_t num_pages, 85 94 struct ttm_operation_ctx *ctx); 86 - extern void ttm_mem_global_free(struct ttm_mem_global *glob, 87 - uint64_t amount); 88 - extern int ttm_mem_global_alloc_page(struct ttm_mem_global *glob, 89 - struct page *page, uint64_t size, 90 - struct ttm_operation_ctx *ctx); 91 - extern void ttm_mem_global_free_page(struct ttm_mem_global *glob, 92 - struct page *page, uint64_t size); 93 - extern size_t ttm_round_pot(size_t size); 94 - extern bool ttm_check_under_lowerlimit(struct ttm_mem_global *glob, 95 - uint64_t num_pages, struct ttm_operation_ctx *ctx); 96 95 #endif