drm/ttm: some cleanups
Unexport ttm_check_under_lowerlimit. Make ttm_bo_acc_size static and unexport it. Remove ttm_get_kernel_zone_memory_size. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/390515/
This commit is contained in:
@@ -1255,9 +1255,9 @@ int ttm_bo_init(struct ttm_bo_device *bdev,
|
||||
}
|
||||
EXPORT_SYMBOL(ttm_bo_init);
|
||||
|
||||
size_t ttm_bo_acc_size(struct ttm_bo_device *bdev,
|
||||
unsigned long bo_size,
|
||||
unsigned struct_size)
|
||||
static size_t ttm_bo_acc_size(struct ttm_bo_device *bdev,
|
||||
unsigned long bo_size,
|
||||
unsigned struct_size)
|
||||
{
|
||||
unsigned npages = (PAGE_ALIGN(bo_size)) >> PAGE_SHIFT;
|
||||
size_t size = 0;
|
||||
@@ -1267,7 +1267,6 @@ size_t ttm_bo_acc_size(struct ttm_bo_device *bdev,
|
||||
size += ttm_round_pot(sizeof(struct ttm_tt));
|
||||
return size;
|
||||
}
|
||||
EXPORT_SYMBOL(ttm_bo_acc_size);
|
||||
|
||||
size_t ttm_bo_dma_acc_size(struct ttm_bo_device *bdev,
|
||||
unsigned long bo_size,
|
||||
|
@@ -554,7 +554,6 @@ ttm_check_under_lowerlimit(struct ttm_mem_global *glob,
|
||||
|
||||
return false;
|
||||
}
|
||||
EXPORT_SYMBOL(ttm_check_under_lowerlimit);
|
||||
|
||||
static int ttm_mem_global_reserve(struct ttm_mem_global *glob,
|
||||
struct ttm_mem_zone *single_zone,
|
||||
@@ -682,9 +681,3 @@ size_t ttm_round_pot(size_t size)
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(ttm_round_pot);
|
||||
|
||||
uint64_t ttm_get_kernel_zone_memory_size(struct ttm_mem_global *glob)
|
||||
{
|
||||
return glob->zone_kernel->max_mem;
|
||||
}
|
||||
EXPORT_SYMBOL(ttm_get_kernel_zone_memory_size);
|
||||
|
Reference in New Issue
Block a user