All of lore.kernel.org
 help / color / mirror / Atom feed
* omap-hsmmc build broken with OF enabled in latest kernel
@ 2012-04-10  9:54 Russell King - ARM Linux
  2012-04-10 14:03 ` Chris Ball
  0 siblings, 1 reply; 3+ messages in thread
From: Russell King - ARM Linux @ 2012-04-10  9:54 UTC (permalink / raw)
  To: Rajendra Nayak, Rob Herring, Chris Ball, linux-omap

This commit:

commit 46856a68dcb5f67c779d211fd6bcb5d7a2a7f19b
Author: Rajendra Nayak <rnayak@ti.com>
Date:   Mon Mar 12 20:32:37 2012 +0530

    mmc: omap_hsmmc: Convert hsmmc driver to use device tree

    Define dt bindings for the ti-omap-hsmmc, and adapt the driver to extract
    data (which was earlier passed as platform_data) from device tree.

    Signed-off-by: Rajendra Nayak <rnayak@ti.com>
    Acked-by: Rob Herring <rob.herring@calxeda.com>
    Signed-off-by: Chris Ball <cjb@laptop.org>

breaks omap-hsmmc compilation:

drivers/mmc/host/omap_hsmmc.c:1745: error: expected ',' or ';' before 'extern'

+#ifdef CONFIG_OF
+static u16 omap4_reg_offset = 0x100;
+
+static const struct of_device_id omap_mmc_of_match[] = {
...
+}
+MODULE_DEVICE_TABLE(of, omap_mmc_of_match);

There should be a ';' after the }.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: omap-hsmmc build broken with OF enabled in latest kernel
  2012-04-10  9:54 omap-hsmmc build broken with OF enabled in latest kernel Russell King - ARM Linux
@ 2012-04-10 14:03 ` Chris Ball
  2012-04-10 14:12   ` T Krishnamoorthy, Balaji
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Ball @ 2012-04-10 14:03 UTC (permalink / raw)
  To: Russell King - ARM Linux
  Cc: Rajendra Nayak, Rob Herring, linux-omap, S, Venkatraman

Hi,

On Tue, Apr 10 2012, Russell King - ARM Linux wrote:
> This commit:
>
> commit 46856a68dcb5f67c779d211fd6bcb5d7a2a7f19b
> Author: Rajendra Nayak <rnayak@ti.com>
> Date:   Mon Mar 12 20:32:37 2012 +0530
>
>     mmc: omap_hsmmc: Convert hsmmc driver to use device tree
>
>     Define dt bindings for the ti-omap-hsmmc, and adapt the driver to extract
>     data (which was earlier passed as platform_data) from device tree.
>
>     Signed-off-by: Rajendra Nayak <rnayak@ti.com>
>     Acked-by: Rob Herring <rob.herring@calxeda.com>
>     Signed-off-by: Chris Ball <cjb@laptop.org>
>
> breaks omap-hsmmc compilation:
>
> drivers/mmc/host/omap_hsmmc.c:1745: error: expected ',' or ';' before 'extern'
>
> +#ifdef CONFIG_OF
> +static u16 omap4_reg_offset = 0x100;
> +
> +static const struct of_device_id omap_mmc_of_match[] = {
> ...
> +}
> +MODULE_DEVICE_TABLE(of, omap_mmc_of_match);
>
> There should be a ';' after the }.

Thanks, and sorry for breaking the build.  I've pushed a fix to mmc-next
and will send it out to Linus.

Surprisingly, this patch does not break my build with gcc-4.6.0 --
and I've just checked that line 1745 is being compiled by purposefully
introducing an(other) error to it, which *did* break my build.  I wonder
what's going on there; presumably it's the reason that no-one else saw
this earlier.

- Chris.
-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: omap-hsmmc build broken with OF enabled in latest kernel
  2012-04-10 14:03 ` Chris Ball
@ 2012-04-10 14:12   ` T Krishnamoorthy, Balaji
  0 siblings, 0 replies; 3+ messages in thread
From: T Krishnamoorthy, Balaji @ 2012-04-10 14:12 UTC (permalink / raw)
  To: Chris Ball
  Cc: Russell King - ARM Linux, Rajendra Nayak, Rob Herring, linux-omap,
	S, Venkatraman

On Tue, Apr 10, 2012 at 7:33 PM, Chris Ball <cjb@laptop.org> wrote:
> Hi,
>
> On Tue, Apr 10 2012, Russell King - ARM Linux wrote:
>> This commit:
>>
>> commit 46856a68dcb5f67c779d211fd6bcb5d7a2a7f19b
>> Author: Rajendra Nayak <rnayak@ti.com>
>> Date:   Mon Mar 12 20:32:37 2012 +0530
>>
>>     mmc: omap_hsmmc: Convert hsmmc driver to use device tree
>>
>>     Define dt bindings for the ti-omap-hsmmc, and adapt the driver to extract
>>     data (which was earlier passed as platform_data) from device tree.
>>
>>     Signed-off-by: Rajendra Nayak <rnayak@ti.com>
>>     Acked-by: Rob Herring <rob.herring@calxeda.com>
>>     Signed-off-by: Chris Ball <cjb@laptop.org>
>>
>> breaks omap-hsmmc compilation:
>>
>> drivers/mmc/host/omap_hsmmc.c:1745: error: expected ',' or ';' before 'extern'
>>
>> +#ifdef CONFIG_OF
>> +static u16 omap4_reg_offset = 0x100;
>> +
>> +static const struct of_device_id omap_mmc_of_match[] = {
>> ...
>> +}
>> +MODULE_DEVICE_TABLE(of, omap_mmc_of_match);
>>
>> There should be a ';' after the }.
>
> Thanks, and sorry for breaking the build.  I've pushed a fix to mmc-next
> and will send it out to Linus.
>
> Surprisingly, this patch does not break my build with gcc-4.6.0 --
> and I've just checked that line 1745 is being compiled by purposefully
> introducing an(other) error to it, which *did* break my build.  I wonder
> what's going on there; presumably it's the reason that no-one else saw
> this earlier.

Build fails iff omap_hsmmc is built as a module.
Adding ';' fixes and uncovers another build error due to unexported
variable allnodes, will send a RFC patch shortly.

ERROR: "allnodes" [drivers/mmc/host/omap_hsmmc.ko] undefined!
make[3]: *** [__modpost] Error 1

>
> - Chris.
> --
> Chris Ball   <cjb@laptop.org>   <http://printf.net/>
> One Laptop Per Child
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-10 14:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-10  9:54 omap-hsmmc build broken with OF enabled in latest kernel Russell King - ARM Linux
2012-04-10 14:03 ` Chris Ball
2012-04-10 14:12   ` T Krishnamoorthy, Balaji

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.