All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi@ti.com>
To: "ABRAHAM, KISHON VIJAY" <kishon@ti.com>
Cc: balbi@ti.com, Peter Meerwald <pmeerw@pmeerw.net>,
	linux-usb@vger.kernel.org, linux-omap@vger.kernel.org
Subject: Re: linux 3.6-rc2, undefined reference to omap_musb_mailbox
Date: Mon, 20 Aug 2012 14:36:25 +0300	[thread overview]
Message-ID: <20120820113624.GP17455@arwen.pp.htv.fi> (raw)
In-Reply-To: <CAAe_U6JsPJ0b3HszOuCcu1LqEkXnC=LTQG00qwQzdB6pBnpryA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1782 bytes --]

On Mon, Aug 20, 2012 at 04:37:28PM +0530, ABRAHAM, KISHON VIJAY wrote:
> Hi,
> 
> On Mon, Aug 20, 2012 at 3:56 PM, Felipe Balbi <balbi@ti.com> wrote:
> > On Mon, Aug 20, 2012 at 03:46:07PM +0530, ABRAHAM, KISHON VIJAY wrote:
> >> Hi,
> >>
> >> On Mon, Aug 20, 2012 at 3:24 PM, Felipe Balbi <balbi@ti.com> wrote:
> >> > On Mon, Aug 20, 2012 at 11:06:34AM +0530, ABRAHAM, KISHON VIJAY wrote:
> >> >> Hi,
> >> >>
> >> >> On Sat, Aug 18, 2012 at 9:34 PM, Peter Meerwald <pmeerw@pmeerw.net> wrote:
> >> >> >
> >> >> > 3.6-rc2 fails to compile with
> >> >> > CONFIG_USB_MUSB_HDRC=m
> >> >> > CONFIG_USB_MUSB_OMAP2PLUS=m
> >> >> >
> >> >> >   LD      init/built-in.o
> >> >> > drivers/built-in.o: In function `twl4030_usb_irq':
> >> >> > /home/pmeerw/linux-3.6-rc2/drivers/usb/otg/twl4030-usb.c:518: undefined reference to `omap_musb_mailbox'
> >> >> > drivers/built-in.o: In function `twl4030_usb_phy_init':
> >> >> > /home/pmeerw/linux-3.6-rc2/drivers/usb/otg/twl4030-usb.c:540: undefined reference to `omap_musb_mailbox'
> >> >>
> >> >> Having TWL4030_USB as a module will get rid of this.
> >> >> I'll see how this can be resolved when some modules are *built-in* and
> >> >> some are made as *modules*.
> >> >
> >> > EXPORT_SYMBOL_GPL() should sort that out, right ?
> >>
> >> No :-( I already have EXPORT_SYMBOL_GPL() in omap2430.c.
> >
> > I see you're missing an "extern" on the function prototype (on the
> > header). Not sure how modules.dep is generated, but maybe it needs the
> > "extern" there. Can you check it out ?
> 
> That isn't helping either.

oh, ok... twl4030-usb is built-in... now that makes sense. Since
twl4030-usb uses a symbol from omap2430, then it should depend on it,
otherwise this will always happen.

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2012-08-20 11:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-18 16:04 linux 3.6-rc2, undefined reference to omap_musb_mailbox Peter Meerwald
2012-08-20  5:36 ` ABRAHAM, KISHON VIJAY
     [not found]   ` <CAAe_U6+dFuX9fSX_epnPzX_3Zx3XBWAxE6kHDCTeuPwtn-ZQNw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-08-20  9:54     ` Felipe Balbi
2012-08-20 10:16       ` ABRAHAM, KISHON VIJAY
2012-08-20 10:26         ` Felipe Balbi
     [not found]           ` <20120820102641.GM17455-S8G//mZuvNWo5Im9Ml3/Zg@public.gmane.org>
2012-08-20 11:07             ` ABRAHAM, KISHON VIJAY
2012-08-20 11:36               ` Felipe Balbi [this message]
     [not found]                 ` <20120820113624.GP17455-S8G//mZuvNWo5Im9Ml3/Zg@public.gmane.org>
2012-08-23 20:38                   ` [PATCH] usb otg: TWL4030_USB depends on USB_MUSB_OMAP2PLUS in Kconfig Peter Meerwald
     [not found]                     ` <1345754324-12068-1-git-send-email-pmeerw-jW+XmwGofnusTnJN9+BGXg@public.gmane.org>
2012-08-24  7:27                       ` Felipe Balbi
2012-08-24  9:09                         ` [PATCH v2] usb otg: TWL4030_USB to depend " Peter Meerwald
2012-08-24 10:18                         ` [PATCH] usb otg: TWL4030_USB depends " ABRAHAM, KISHON VIJAY
2012-08-23 20:38                   ` linux 3.6-rc2, undefined reference to omap_musb_mailbox Peter Meerwald
     [not found]                     ` <alpine.DEB.2.01.1208232235200.15831-jW+XmwGofnusTnJN9+BGXg@public.gmane.org>
2012-08-24  7:27                       ` Felipe Balbi
     [not found]                         ` <20120824072702.GD3334-S8G//mZuvNWo5Im9Ml3/Zg@public.gmane.org>
2012-09-05 14:31                           ` Pantelis Antoniou

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=20120820113624.GP17455@arwen.pp.htv.fi \
    --to=balbi@ti.com \
    --cc=kishon@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=pmeerw@pmeerw.net \
    /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.