linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Josh Triplett <josh@joshtriplett.org>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Joe Millenbach <jmillenbach@gmail.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org,
	team-fjord@googlegroups.com
Subject: Re: [PATCH] tty: Added a CONFIG_TTY option to allow removal of TTY
Date: Fri, 24 Aug 2012 10:03:43 -0700	[thread overview]
Message-ID: <20120824170342.GA9794@jtriplet-mobl1> (raw)
In-Reply-To: <20120824141537.63274081@pyramind.ukuu.org.uk>

On Fri, Aug 24, 2012 at 02:15:37PM +0100, Alan Cox wrote:
> On Thu, 23 Aug 2012 18:14:48 -0700
> Joe Millenbach <jmillenbach@gmail.com> wrote:
> > On Tue, Aug 21, 2012 at 6:20 AM, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> > >
> > > ...
> > >
> > > >  config MOUSE_PS2
> > > >       tristate "PS/2 mouse"
> > > > +     depends on TTY
> > >
> > > It shouldn't. It would be good to understand why this occurs.
> > 
> > 
> > If I enable this config option, and turn off TTY I get the below errors.
> > 
> > drivers/built-in.o: In function `serport_ldisc_read':
> > serport.c:(.text+0x1aace6): undefined reference to `tty_name'
> > serport.c:(.text+0x1aad57): undefined reference to `tty_name'
> > drivers/built-in.o: In function `serport_init':
> > serport.c:(.init.text+0x8478): undefined reference to `tty_register_ldisc'
> > drivers/built-in.o: In function `serport_exit':
> > serport.c:(.exit.text+0xb29): undefined reference to `tty_unregister_ldisc'
> > 
> > All because MOUSE_PS2 depends on SERIO, just like a lot of entries I
> > blocked.  I assume this means I should keep the dependency on TTY.
> > Unfortunately, I don't have time to dig deeper for the true cause of the
> > dependency right now.
> 
> The true cause I think is that serio/serport.c should depend on tty to be
> built but the ps/2 mouse bits shouldn't.

On the other hand, most people disabling CONFIG_TTY will be building an
extreme embedded system, and on such a system a PS/2 mouse seems highly
unlikely.  Given that, perhaps the goal of removing dependencies on TTY
could happen incrementally once CONFIG_TTY exists?

- Josh Triplett

  reply	other threads:[~2012-08-24 17:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-20 21:50 [PATCH] tty: Added a CONFIG_TTY option to allow removal of TTY Joe Millenbach
2012-08-21 13:20 ` Alan Cox
     [not found]   ` <CADwDc1AvCvWbj8znN-1WbkZA9WYVAqaTkxi7+ENZfJ-qFNRAvw@mail.gmail.com>
2012-08-24  1:14     ` Fwd: " Joe Millenbach
2012-08-24 13:15       ` Alan Cox
2012-08-24 17:03         ` Josh Triplett [this message]
2012-08-24 17:12           ` Alan Cox

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=20120824170342.GA9794@jtriplet-mobl1 \
    --to=josh@joshtriplett.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=gregkh@linuxfoundation.org \
    --cc=jmillenbach@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=team-fjord@googlegroups.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).