mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 17:23:25 -05: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
2 changed files with 3 additions and 10 deletions
|
@ -1012,9 +1012,8 @@ static void drm_vram_mm_cleanup(struct drm_vram_mm *vmm)
|
||||||
* Helpers for integration with struct drm_device
|
* Helpers for integration with struct drm_device
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* deprecated; use drmm_vram_mm_init() */
|
static struct drm_vram_mm *drm_vram_helper_alloc_mm(struct drm_device *dev, uint64_t vram_base,
|
||||||
struct drm_vram_mm *drm_vram_helper_alloc_mm(
|
size_t vram_size)
|
||||||
struct drm_device *dev, uint64_t vram_base, size_t vram_size)
|
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -1036,9 +1035,8 @@ err_kfree:
|
||||||
dev->vram_mm = NULL;
|
dev->vram_mm = NULL;
|
||||||
return ERR_PTR(ret);
|
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)
|
if (!dev->vram_mm)
|
||||||
return;
|
return;
|
||||||
|
@ -1047,7 +1045,6 @@ void drm_vram_helper_release_mm(struct drm_device *dev)
|
||||||
kfree(dev->vram_mm);
|
kfree(dev->vram_mm);
|
||||||
dev->vram_mm = NULL;
|
dev->vram_mm = NULL;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(drm_vram_helper_release_mm);
|
|
||||||
|
|
||||||
static void drm_vram_mm_release(struct drm_device *dev, void *ptr)
|
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
|
* 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,
|
int drmm_vram_helper_init(struct drm_device *dev, uint64_t vram_base,
|
||||||
size_t vram_size);
|
size_t vram_size);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue