Re: [PATCH 1/3] driver core: add probe_err log helper

From: Greg Kroah-Hartman
Date: Tue Oct 16 2018 - 07:09:12 EST


On Tue, Oct 16, 2018 at 11:27:15AM +0100, Mark Brown wrote:
> On Tue, Oct 16, 2018 at 09:22:42AM +0200, Andrzej Hajda wrote:
>
> > +int probe_err(const struct device *dev, int err, const char *fmt, ...)
> > +{
> > + struct va_format vaf;
> > + va_list args;
>
> ...
>
> > + return err;
> > +}
> > +
>
> This will need an EXPORT_SYMBOL for modules won't it?

EXPORT_SYMBOL_GPL() to be specific, as it is dealing with the driver
core.

thanks,

greg k-h