diff options
author | Christian König <christian.koenig@amd.com> | 2020-09-21 16:59:50 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2020-09-24 17:16:50 +0300 |
commit | 28578f35338f9ec021d5a84f7931eb420a850f3e (patch) | |
tree | 34132d2a32df17014229425bd93156c3ce2809cb /include/drm/ttm/ttm_bo_api.h | |
parent | 4671078eb8e390bd44c458e2f482fbb61f5bc612 (diff) | |
download | linux-28578f35338f9ec021d5a84f7931eb420a850f3e.tar.xz |
drm/ttm: remove ttm_bo_create
Not used any more.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Link: https://patchwork.freedesktop.org/patch/391616/?series=81973&rev=1
Diffstat (limited to 'include/drm/ttm/ttm_bo_api.h')
-rw-r--r-- | include/drm/ttm/ttm_bo_api.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/include/drm/ttm/ttm_bo_api.h b/include/drm/ttm/ttm_bo_api.h index 2ff4fdada333..c96a25d571c8 100644 --- a/include/drm/ttm/ttm_bo_api.h +++ b/include/drm/ttm/ttm_bo_api.h @@ -449,30 +449,6 @@ int ttm_bo_init(struct ttm_bo_device *bdev, struct ttm_buffer_object *bo, void (*destroy) (struct ttm_buffer_object *)); /** - * ttm_bo_create - * - * @bdev: Pointer to a ttm_bo_device struct. - * @size: Requested size of buffer object. - * @type: Requested type of buffer object. - * @placement: Initial placement. - * @page_alignment: Data alignment in pages. - * @interruptible: If needing to sleep while waiting for GPU resources, - * sleep interruptible. - * @p_bo: On successful completion *p_bo points to the created object. - * - * This function allocates a ttm_buffer_object, and then calls ttm_bo_init - * on that object. The destroy function is set to kfree(). - * Returns - * -ENOMEM: Out of memory. - * -EINVAL: Invalid placement flags. - * -ERESTARTSYS: Interrupted by signal while waiting for resources. - */ -int ttm_bo_create(struct ttm_bo_device *bdev, unsigned long size, - enum ttm_bo_type type, struct ttm_placement *placement, - uint32_t page_alignment, bool interruptible, - struct ttm_buffer_object **p_bo); - -/** * ttm_bo_evict_mm * * @bdev: Pointer to a ttm_bo_device struct. |