mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
drm/vram-helper: Unexport drm_vram_helper_{alloc,release}_mm()
All GEM-VRAM-based drivers use auto-cleanup via drmm_vram_helper_init(). Unexport the manual APIs and make them internal implementation. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20210702075434.27677-4-tzimmermann@suse.de
This commit is contained in:
parent
11e96701d1
commit
9aa0267476
@ -1012,9 +1012,8 @@ static void drm_vram_mm_cleanup(struct drm_vram_mm *vmm)
|
||||
* Helpers for integration with struct drm_device
|
||||
*/
|
||||
|
||||
/* deprecated; use drmm_vram_mm_init() */
|
||||
struct drm_vram_mm *drm_vram_helper_alloc_mm(
|
||||
struct drm_device *dev, uint64_t vram_base, size_t vram_size)
|
||||
static struct drm_vram_mm *drm_vram_helper_alloc_mm(struct drm_device *dev, uint64_t vram_base,
|
||||
size_t vram_size)
|
||||
{
|
||||
int ret;
|
||||
|
||||
@ -1036,9 +1035,8 @@ err_kfree:
|
||||
dev->vram_mm = NULL;
|
||||
return ERR_PTR(ret);
|
||||
}
|
||||
EXPORT_SYMBOL(drm_vram_helper_alloc_mm);
|
||||
|
||||
void drm_vram_helper_release_mm(struct drm_device *dev)
|
||||
static void drm_vram_helper_release_mm(struct drm_device *dev)
|
||||
{
|
||||
if (!dev->vram_mm)
|
||||
return;
|
||||
@ -1047,7 +1045,6 @@ void drm_vram_helper_release_mm(struct drm_device *dev)
|
||||
kfree(dev->vram_mm);
|
||||
dev->vram_mm = NULL;
|
||||
}
|
||||
EXPORT_SYMBOL(drm_vram_helper_release_mm);
|
||||
|
||||
static void drm_vram_mm_release(struct drm_device *dev, void *ptr)
|
||||
{
|
||||
|
@ -204,10 +204,6 @@ void drm_vram_mm_debugfs_init(struct drm_minor *minor);
|
||||
* Helpers for integration with struct drm_device
|
||||
*/
|
||||
|
||||
struct drm_vram_mm *drm_vram_helper_alloc_mm(
|
||||
struct drm_device *dev, uint64_t vram_base, size_t vram_size);
|
||||
void drm_vram_helper_release_mm(struct drm_device *dev);
|
||||
|
||||
int drmm_vram_helper_init(struct drm_device *dev, uint64_t vram_base,
|
||||
size_t vram_size);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user