diff mbox series

[v9,32/53] DRM-CLASSMAP-USE in drm-drv.c

Message ID 20240702215804.2201271-33-jim.cromie@gmail.com (mailing list archive)
State New
Headers show
Series fix CONFIG_DRM_USE_DYNAMIC_DEBUG=y | expand

Commit Message

Jim Cromie July 2, 2024, 9:57 p.m. UTC
---
 drivers/gpu/drm/drm_drv.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Jim Cromie July 2, 2024, 10:21 p.m. UTC | #1
On Tue, Jul 2, 2024 at 3:58 PM Jim Cromie <jim.cromie@gmail.com> wrote:
>
> ---
>  drivers/gpu/drm/drm_drv.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
> index 243cacb3575c..f511d40f577a 100644
> --- a/drivers/gpu/drm/drm_drv.c
> +++ b/drivers/gpu/drm/drm_drv.c
> @@ -56,6 +56,9 @@ MODULE_LICENSE("GPL and additional rights");
>  static DEFINE_SPINLOCK(drm_minor_lock);
>  static struct idr drm_minors_idr;
>
> +/* single ref for all clients ? */

So this was my attempt to try a single USE
from the client-side of drm core / driver interface.

I didnt find it to work, and meant to rebase it away.


> +DRM_CLASSMAP_USE(drm_debug_classes);
> +
>  /*
>   * If the drm core fails to init for whatever reason,
>   * we should prevent any drivers from registering with it.
> --
> 2.45.2
>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index 243cacb3575c..f511d40f577a 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -56,6 +56,9 @@  MODULE_LICENSE("GPL and additional rights");
 static DEFINE_SPINLOCK(drm_minor_lock);
 static struct idr drm_minors_idr;
 
+/* single ref for all clients ? */
+DRM_CLASSMAP_USE(drm_debug_classes);
+
 /*
  * If the drm core fails to init for whatever reason,
  * we should prevent any drivers from registering with it.