* [PATCH] ARM: omap2+: stub out omap*_volt_data
@ 2011-10-08 15:23 Arnd Bergmann
2011-10-10 18:41 ` Kevin Hilman
0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2011-10-08 15:23 UTC (permalink / raw)
To: linux-arm-kernel
When CONFIG_PM_OPP is not set, the definitions for these variables
are not available, so we should conditionally define them to
NULL.
arch/arm/mach-omap2/built-in.o: In function `omap3xxx_voltagedomains_init':
voltagedomains3xxx_data.c:100: undefined reference to `omap36xx_vddmpu_volt_data'
voltagedomains3xxx_data.c:100: undefined reference to `omap34xx_vddmpu_volt_data'
voltagedomains3xxx_data.c:100: undefined reference to `omap36xx_vddcore_volt_data'
voltagedomains3xxx_data.c:100: undefined reference to `omap34xx_vddcore_volt_data'
arch/arm/mach-omap2/built-in.o: In function `omap44xx_voltagedomains_init':
voltagedomains44xx_data.c:111: undefined reference to `omap44xx_vdd_mpu_volt_data'
voltagedomains44xx_data.c:111: undefined reference to `omap44xx_vdd_iva_volt_data'
voltagedomains44xx_data.c:111: undefined reference to `omap44xx_vdd_core_volt_data'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
I got this build error only now after pulling in the latest omap series, but
I cannot tell what caused it. It's also not clear to me if this is the correct
solution. Please ack or provide a better fix.
arch/arm/mach-omap2/omap_opp_data.h | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-omap2/omap_opp_data.h b/arch/arm/mach-omap2/omap_opp_data.h
index c784c12..fdbf96b 100644
--- a/arch/arm/mach-omap2/omap_opp_data.h
+++ b/arch/arm/mach-omap2/omap_opp_data.h
@@ -83,7 +83,7 @@ struct omap_opp_def {
extern int __init omap_init_opp_table(struct omap_opp_def *opp_def,
u32 opp_def_size);
-
+#ifdef CONFIG_PM_OPP
extern struct omap_volt_data omap34xx_vddmpu_volt_data[];
extern struct omap_volt_data omap34xx_vddcore_volt_data[];
extern struct omap_volt_data omap36xx_vddmpu_volt_data[];
@@ -93,4 +93,15 @@ extern struct omap_volt_data omap44xx_vdd_mpu_volt_data[];
extern struct omap_volt_data omap44xx_vdd_iva_volt_data[];
extern struct omap_volt_data omap44xx_vdd_core_volt_data[];
+#else
+#define omap34xx_vddmpu_volt_data NULL
+#define omap34xx_vddcore_volt_data NULL
+#define omap36xx_vddmpu_volt_data NULL
+#define omap36xx_vddcore_volt_data NULL
+
+#define omap44xx_vdd_mpu_volt_data NULL
+#define omap44xx_vdd_iva_volt_data NULL
+#define omap44xx_vdd_core_volt_data NULL
+#endif
+
#endif /* __ARCH_ARM_MACH_OMAP2_OMAP_OPP_DATA_H */
--
1.7.5.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] ARM: omap2+: stub out omap*_volt_data
2011-10-08 15:23 [PATCH] ARM: omap2+: stub out omap*_volt_data Arnd Bergmann
@ 2011-10-10 18:41 ` Kevin Hilman
2011-10-11 13:57 ` Arnd Bergmann
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Hilman @ 2011-10-10 18:41 UTC (permalink / raw)
To: linux-arm-kernel
Arnd Bergmann <arnd@arndb.de> writes:
> When CONFIG_PM_OPP is not set, the definitions for these variables
> are not available, so we should conditionally define them to
> NULL.
>
> arch/arm/mach-omap2/built-in.o: In function `omap3xxx_voltagedomains_init':
> voltagedomains3xxx_data.c:100: undefined reference to `omap36xx_vddmpu_volt_data'
> voltagedomains3xxx_data.c:100: undefined reference to `omap34xx_vddmpu_volt_data'
> voltagedomains3xxx_data.c:100: undefined reference to `omap36xx_vddcore_volt_data'
> voltagedomains3xxx_data.c:100: undefined reference to `omap34xx_vddcore_volt_data'
> arch/arm/mach-omap2/built-in.o: In function `omap44xx_voltagedomains_init':
> voltagedomains44xx_data.c:111: undefined reference to `omap44xx_vdd_mpu_volt_data'
> voltagedomains44xx_data.c:111: undefined reference to `omap44xx_vdd_iva_volt_data'
> voltagedomains44xx_data.c:111: undefined reference to `omap44xx_vdd_core_volt_data'
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Kevin Hilman <khilman@ti.com>
> ---
> I got this build error only now after pulling in the latest omap series, but
> I cannot tell what caused it. It's also not clear to me if this is the correct
> solution. Please ack or provide a better fix.
This code was merged for v2.6.39, so not sure why this error is only
showing up for you now. I just tried a !CONFIG_PM_OPP build on v2.6.39
and get the same errors, so it's been lingering.
Maybe you haven't had a randconfig that disabled CONFIG_PM_OPP before?
Anyways, the fix is fine with me.
Kevin
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] ARM: omap2+: stub out omap*_volt_data
2011-10-10 18:41 ` Kevin Hilman
@ 2011-10-11 13:57 ` Arnd Bergmann
0 siblings, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2011-10-11 13:57 UTC (permalink / raw)
To: linux-arm-kernel
On Monday 10 October 2011, Kevin Hilman wrote:
> > I got this build error only now after pulling in the latest omap series, but
> > I cannot tell what caused it. It's also not clear to me if this is the correct
> > solution. Please ack or provide a better fix.
>
> This code was merged for v2.6.39, so not sure why this error is only
> showing up for you now. I just tried a !CONFIG_PM_OPP build on v2.6.39
> and get the same errors, so it's been lingering.
>
> Maybe you haven't had a randconfig that disabled CONFIG_PM_OPP before?
I don't know. The best explanation is that this is a very unlikely case.
I've done many thousand randconfig builds now and have not seen it before.
Of course, since the output of randconfig is random, it could indeed just
be a coincidence.
> Anyways, the fix is fine with me.
Thanks,
Arnd
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-10-11 13:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-08 15:23 [PATCH] ARM: omap2+: stub out omap*_volt_data Arnd Bergmann
2011-10-10 18:41 ` Kevin Hilman
2011-10-11 13:57 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).