Re: [PATCH 2/2] ttyprintk: Allow built as a module

From: Samo PogaÄnik
Date: Sat Apr 05 2014 - 07:23:20 EST


Dne 03.04.2014 (Äet) ob 08:13 +0200 je Takashi Iwai napisal(a):
> At Wed, 2 Apr 2014 12:32:22 -0700,
> Greg Kroah-Hartman wrote:
> >
> > On Wed, Apr 02, 2014 at 12:29:42PM +0200, Takashi Iwai wrote:
> > > The driver is well written to be used as a module, just the exit call
> > > is missing.
> > >
> > > Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
> > > ---
> > > drivers/char/Kconfig | 2 +-
> > > drivers/char/ttyprintk.c | 13 ++++++++++++-
> > > 2 files changed, 13 insertions(+), 2 deletions(-)
> >
> > There was some reason we didn't do this back when the code was accepted,
> > but I really can't remember why.
> >
> > If you have tested this out, I don't have any objections to taking these
> > patches, thanks.
>
> The module worked fine with my quick tests (load/unload/feed something
> via /dev/ttyprintk), at least. But it'd be helpful if anyone
> remembers and clarifies.
>
My initial requirement was to be able to use this functionality as soon
as possible at the beginning of user-space initialisation, so i never
thought of the ttyprintk code being loaded afterwards as module. Also
nobody brought modularisation subject to the table during code
acceptance.

>
> thanks,
>
> Takashi

regards, Samo

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/