public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Felipe Balbi <balbi@ti.com>
Cc: Arnaud Lacombe <lacombar@gmail.com>,
	Alan Stern <stern@rowland.harvard.edu>,
	Michal Nazarewicz <mina86@mina86.com>,
	Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
	Linux USB Mailing List <linux-usb@vger.kernel.org>,
	linux-kbuild@vger.kernel.org
Subject: Re: generate one module from multiple object files (was: Re: [PATCH 2/2] usb: gadget: convert all users to the new udc)
Date: Tue, 14 Jun 2011 13:21:09 -0700	[thread overview]
Message-ID: <20110614202109.GB16736@kroah.com> (raw)
In-Reply-To: <20110614183621.GA30763@legolas.emea.dhcp.ti.com>

On Tue, Jun 14, 2011 at 09:36:22PM +0300, Felipe Balbi wrote:
> Hi,
> 
> On Tue, Jun 14, 2011 at 01:48:39PM -0400, Arnaud Lacombe wrote:
> > On Tue, Jun 14, 2011 at 1:29 PM, Felipe Balbi <balbi@ti.com> wrote:
> > > [...]
> > > In summary:
> > >
> > > We don't want to have library code into their own drivers because,
> > I am not sure to parse that correctly, could you elaborate ?
> 
> u_*.c and composite.c are basically library code. We don't want to have
> composite.ko and/or u_*.ko.
> 
> > > well, you can only have one gadget driver at a time anyway. And we don't
> > > want separate compilation due to having stuff out of init sections.
> > >
> > on that last point, are you implying that section mapping is not kept
> > across the different linking steps ?
> 
> could be. I don't remember all the details. That was back on 2.6.27
> times. I would need to really revisit all the details on the archives.
> 
> What I remember is that Dave noted code shrunk when combining the source
> files, even if he didn't mark all the other functions as "static".
> 
> Greg, do you remember why you started this discussion when you first
> introduced g_utils.ko ??

That was a while ago.  I think I was having some build issues with the
including of the .c files due to some driver core changes I was working
on, so I tried to create that, but then ran into other issues with
#defines causing different things to be build in odd ways and breaking
the parallel build system.

I really can't remember the specifics, sorry.

If you can figure a way to clean this up, I would not object to that at
all.

Sorry I can't be of more help here.

greg k-h

  reply	other threads:[~2011-06-14 20:22 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20110613085534.GD3633@legolas.emea.dhcp.ti.com>
     [not found] ` <Pine.LNX.4.44L0.1106131024100.1983-100000@iolanthe.rowland.org>
     [not found]   ` <20110613153516.GC2353@legolas.emea.dhcp.ti.com>
     [not found]     ` <op.vw1yw3ol3l0zgt@mnazarewicz-glaptop>
2011-06-14  7:32       ` generate one module from multiple object files (was: Re: [PATCH 2/2] usb: gadget: convert all users to the new udc) Felipe Balbi
2011-06-14 15:33         ` Arnaud Lacombe
2011-06-14 16:45           ` Felipe Balbi
2011-06-14 17:06             ` Alan Stern
2011-06-14 17:16               ` Sebastian Andrzej Siewior
2011-06-14 17:29               ` Felipe Balbi
2011-06-14 17:48                 ` Arnaud Lacombe
2011-06-14 18:36                   ` Felipe Balbi
2011-06-14 20:21                     ` Greg KH [this message]
2011-06-14 19:27                 ` Alan Stern
2011-06-14 19:41                   ` Felipe Balbi
2011-06-14 20:01                     ` Alan Stern
2011-06-14 20:16                       ` Felipe Balbi
2011-06-14 20:24                         ` Greg KH
2011-06-14 17:15             ` Arnaud Lacombe

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=20110614202109.GB16736@kroah.com \
    --to=greg@kroah.com \
    --cc=balbi@ti.com \
    --cc=bigeasy@linutronix.de \
    --cc=lacombar@gmail.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mina86@mina86.com \
    --cc=stern@rowland.harvard.edu \
    /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