[PATCH v2 1/2] driver core: Export device_is_dependent() to modules
Greg KH
gregkh at linuxfoundation.org
Mon Nov 27 18:20:55 UTC 2023
On Mon, Nov 27, 2023 at 05:38:13PM +0100, Maxime Ripard wrote:
> Greg, Rafael,
>
> On Mon, Nov 27, 2023 at 01:14:13PM +0800, Liu Ying wrote:
> > Export device_is_dependent() since the drm_kms_helper module is starting
> > to use it.
> >
> > Signed-off-by: Liu Ying <victor.liu at nxp.com>
> > ---
> > v2:
> > * Newly introduced as needed by patch 2.
> >
> > drivers/base/core.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/base/core.c b/drivers/base/core.c
> > index 67ba592afc77..bfd2bf0364b7 100644
> > --- a/drivers/base/core.c
> > +++ b/drivers/base/core.c
> > @@ -328,6 +328,7 @@ int device_is_dependent(struct device *dev, void *target)
> > }
> > return ret;
> > }
> > +EXPORT_SYMBOL_GPL(device_is_dependent);
>
> So, a committer just applied this to drm-misc-fixes without your
> approval. Could you ack it? If you don't want to, we'll fix it.
Wait, why exactly is this needed? Nothing outside of the driver core
should be needing this function, it shouldn't be public at all (I missed
that before.)
So please, revert it for now, let's figure out why DRM thinks this is
needed for it's devices, and yet no other bus/subsystem does.
thanks,
greg k-h
More information about the dri-devel
mailing list