All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Jamie Iles <jamie@jamieiles.com>
Cc: Arnd Bergmann <arnd@arndb.de>, linux-serial@vger.kernel.org
Subject: Re: [PATCH] tty: 8250_dw: fix build error for CONFIG_SERIAL_8250=m
Date: Wed, 24 Aug 2011 08:09:34 -0700	[thread overview]
Message-ID: <20110824150934.GA25080@kroah.com> (raw)
In-Reply-To: <20110824145400.GO23757@pulham.picochip.com>

On Wed, Aug 24, 2011 at 03:54:00PM +0100, Jamie Iles wrote:
> On Wed, Aug 24, 2011 at 04:45:16PM +0200, Arnd Bergmann wrote:
> > On Wednesday 24 August 2011, Jamie Iles wrote:
> > > Allow 8250_dw to be built as a module and export serial8250_handle_irq
> > > so that 8250 can still be built as a module.  This prevents the
> > > following build failure:
> > > 
> > > drivers/built-in.o: In function `dw8250_handle_irq':
> > > 8250_dw.c:(.text+0xcad9c): undefined reference to `serial8250_handle_irq'
> > 
> > I think this won't fix the bug that Stephen was reporting, it will only
> > make the error message go away but it won't work in the end: When
> > CONFIG_SERIAL_8250_DW is set to 'm', the declaration of
> > serial8250_use_designware_io now gets stubbed out from of_serial.ko,
> > meaning that the 8250_dw module becomes useless.
> > 
> > At the very least you also need to export the serial8250_use_designware_io
> > symbol and check for CONFIG_SERIAL_8250_DW_MODULE in the header.
> 
> Ahh, I didn't realise that this would define 
> CONFIG_SERIAL_8250_DW_MODULE rather than CONFIG_SERIAL_8250_DW.
> 
> > When go go to such length, I think the approach I initially advocated
> > (making 8250_dw a standalone platform_driver like of_serial) will be
> > nicer.
> 
> OK, in hindsight that does seem like a much better option.  I'll spin a 
> separate platform_driver instead.
> 
> Greg, I'm not sure how to best handle this, do you want patches to 
> revert:
> 
> 	tty: serial8250: add helpers for the DesignWare 8250
> 	tty: of_serial: add support for the DesignWare 8250
> 
> or can these be dropped?

I'll go revert them myself, as that's easiest, right?

thanks,

greg k-h

  reply	other threads:[~2011-08-24 15:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-24  7:11 [PATCH] tty: 8250_dw: fix build error for CONFIG_SERIAL_8250=m Jamie Iles
2011-08-24 14:45 ` Arnd Bergmann
2011-08-24 14:54   ` Jamie Iles
2011-08-24 15:09     ` Greg KH [this message]
2011-08-24 15:12       ` Jamie Iles
2011-08-24 15:24   ` Jamie Iles
2011-08-24 16:14     ` Arnd Bergmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110824150934.GA25080@kroah.com \
    --to=greg@kroah.com \
    --cc=arnd@arndb.de \
    --cc=jamie@jamieiles.com \
    --cc=linux-serial@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.