Re: [PATCH 3/5] drm/vram: add vram-mm debugfs file
From: Gerd Hoffmann
Date: Tue Sep 03 2019 - 02:21:01 EST
Hi,
> > +++ b/include/drm/drm_gem_vram_helper.h
> > @@ -123,6 +123,7 @@ int drm_gem_vram_driver_dumb_mmap_offset(struct drm_file *file,
> > * &struct drm_driver with default functions.
> > */
> > #define DRM_GEM_VRAM_DRIVER \
> > + .debugfs_init = drm_vram_mm_debugfs_init, \
>
> > +int drm_vram_mm_debugfs_init(struct drm_minor *minor);
>
> I cannot find a caller of this function. Will this be called form
> drm_debugfs_init()?
Yes, via drm_driver->debugfs_init which is set above.
cheers,
Gerd