All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Ohad Ben-Cohen <ohad@wizery.com>
Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>,
	linux-omap@vger.kernel.org, "Anna, Suman" <s-anna@ti.com>
Subject: Re: Latest OMAP randconfig build error
Date: Wed, 22 Feb 2012 09:58:22 -0800	[thread overview]
Message-ID: <20120222175822.GV18185@atomide.com> (raw)
In-Reply-To: <CAK=WgbYxJyLoYs6vcj0dhSSAFX3vHqZAOHcr9t3+xEAh4ZPBNA@mail.gmail.com>

* Ohad Ben-Cohen <ohad@wizery.com> [120222 01:30]:
> + Tony, Suman
> 
> On Wed, Feb 22, 2012 at 10:51 AM, Russell King - ARM Linux
> <linux@arm.linux.org.uk> wrote:
> > arch/arm/mach-omap2/mailbox.c: In function 'omap2_mbox_probe':
> > arch/arm/mach-omap2/mailbox.c:354: error: 'omap2_mboxes' undeclared (first use in this function)
> > arch/arm/mach-omap2/mailbox.c:354: error: (Each undeclared identifier is reported only once
> > arch/arm/mach-omap2/mailbox.c:354: error: for each function it appears in.)
> 
> The below should trivially solve this, but I wonder if there was any
> other merit in explicitly using CONFIG_SOC_OMAP2420 there (any
> different between 2420 and 2430 in that respect ?).
> 
> diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c
> index 609ea2d..e61d275 100644
> --- a/arch/arm/mach-omap2/mailbox.c
> +++ b/arch/arm/mach-omap2/mailbox.c
> @@ -258,7 +258,7 @@ struct omap_mbox mbox_dsp_info = {
>  struct omap_mbox *omap3_mboxes[] = { &mbox_dsp_info, NULL };
>  #endif
> 
> -#if defined(CONFIG_SOC_OMAP2420)
> +#if defined(CONFIG_ARCH_OMAP2)
>  /* IVA */
>  static struct omap_mbox2_priv omap2_mbox_iva_priv = {
>  	.tx_fifo = {

2430 is like omap3 for the mailbox. So the code we have seems
wrong trying to initialize it like 2420 mailbox. So we either
need a new entry for omap2430_mboxes[], or should just bail
out from the probe for 2430 for the fix.

Regards,

Tony

  reply	other threads:[~2012-02-22 17:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-22  8:51 Latest OMAP randconfig build error Russell King - ARM Linux
2012-02-22 10:01 ` Ohad Ben-Cohen
2012-02-22 17:58   ` Tony Lindgren [this message]
2012-02-22 19:40     ` Ramirez Luna, Omar
2012-02-22 19:55     ` Ohad Ben-Cohen
2012-02-22 20:12       ` Russell King - ARM Linux
2012-02-22 20:22         ` Ohad Ben-Cohen
2012-02-22 22:56           ` Tony Lindgren
2012-02-23  8:02             ` Ohad Ben-Cohen

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=20120222175822.GV18185@atomide.com \
    --to=tony@atomide.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=ohad@wizery.com \
    --cc=s-anna@ti.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 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.