Skip to contentSkip to conversation

omap-hsmmc build broken with OF enabled in latest kernel

DISCUSSION Russell King - ARM Linux 3 participants 3 messages Apr 10, 2012

lore
Share & tools
lore

Russell King - ARM Linux

author Acked-by Rob Herring
#0 lore raw

This commit:

commit 46856a68dcb5f67c779d211fd6bcb5d7a2a7f19b

Author: Rajendra Nayak <[email protected]>
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.

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 }.

#1 lore raw

Hi,

Quoted 27 lines · Russell King - ARM Linux

This commit:

commit 46856a68dcb5f67c779d211fd6bcb5d7a2a7f19b

Author: Rajendra Nayak <[email protected]>
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.

breaks omap-hsmmc compilation:

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

(quoted diff) +6 -0
+#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);
Quoted 1 line

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.

Signature · 2 lines
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child
#2 lore raw
Quoted 35 lines · Chris Ball

Hi,

Quoted 27 lines · Russell King - ARM Linux

This commit:

commit 46856a68dcb5f67c779d211fd6bcb5d7a2a7f19b
Author: Rajendra Nayak <[email protected]>
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.

breaks omap-hsmmc compilation:

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

(quoted diff) +6 -0
+#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);
Quoted 1 line

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.

Quoted 5 lines

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

Quoted 9 lines

- Chris.
--
Chris Ball   <[email protected]>   <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 [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html