Skip to contentSkip to conversation

OMAP3: PM: Fix zoom3 defconfig build

PATCH In review Manjunatha GK 3 participants 3 messages Apr 26, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OMAP3: PM: Fix zoom3 defconfig build

The zoom3 defconfig build is broken with opp patches. This patch will fix the same. Build and boot tested on omap zoom3 board.

Build error log:
In file included from arch/arm/plat-omap/include/plat/omap-pm.h:21,

                 from arch/arm/mach-omap2/hsmmc.c:19:

arch/arm/plat-omap/include/plat/opp.h: In function 'opp_find_freq_exact':
arch/arm/plat-omap/include/plat/opp.h:255: error: implicit declaration of function 'ERR_PTR'

---
 arch/arm/plat-omap/include/plat/opp.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/plat-omap/include/plat/opp.h +1 -0
index dc9a0d9..6b38a20 100644
@@ -15,6 +15,7 @@
 #define __ASM_ARM_OMAP_OPP_H
 
 #include <linux/cpufreq.h>
+#include <linux/err.h>
 
 #ifdef CONFIG_ARCH_OMAP3
 enum opp_t {
Signature · 1 line
1.6.0.4
#1 lore raw

Manjunatha GK had written, on 04/26/2010 08:18 AM, the following:

Quoted 9 lines

The zoom3 defconfig build is broken with opp patches. This patch will fix the same. Build and boot tested on omap zoom3 board.

Build error log:
In file included from arch/arm/plat-omap/include/plat/omap-pm.h:21,

                 from arch/arm/mach-omap2/hsmmc.c:19:

arch/arm/plat-omap/include/plat/opp.h: In function 'opp_find_freq_exact':
arch/arm/plat-omap/include/plat/opp.h:255: error: implicit declaration of function 'ERR_PTR'

I think this is a valid change, though I think commit message is not informative enough in this case. the problem is that opp.h defines a set of empty access functions for use when CPUFREQ is not defined, which is the case you seem to be hitting. it is not restricted to zoom3 defconfig.

If you could rephrase the commit message accordingly, it would be helpful.

Quoted 19 lines
---
 arch/arm/plat-omap/include/plat/opp.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/plat-omap/include/plat/opp.h +1 -0
index dc9a0d9..6b38a20 100644
@@ -15,6 +15,7 @@
 #define __ASM_ARM_OMAP_OPP_H
 
 #include <linux/cpufreq.h>
+#include <linux/err.h>
 
 #ifdef CONFIG_ARCH_OMAP3
 enum opp_t {
Signature · 2 lines
Regards,
Nishanth Menon
#2 lore raw
Quoted 11 lines · Nishanth Menon

Manjunatha GK had written, on 04/26/2010 08:18 AM, the following:

Quoted 9 lines

The zoom3 defconfig build is broken with opp patches. This patch will fix the same. Build and boot tested on omap zoom3 board.

Build error log:
In file included from arch/arm/plat-omap/include/plat/omap-pm.h:21,

                 from arch/arm/mach-omap2/hsmmc.c:19:

arch/arm/plat-omap/include/plat/opp.h: In function 'opp_find_freq_exact':
arch/arm/plat-omap/include/plat/opp.h:255: error: implicit declaration of function 'ERR_PTR'

Quoted 7 lines

I think this is a valid change, though I think commit message is not informative enough in this case. the problem is that opp.h defines a set of empty access functions for use when CPUFREQ is not defined, which is the case you seem to be hitting. it is not restricted to zoom3 defconfig.

If you could rephrase the commit message accordingly, it would be helpful.

No need... I found a few other problems related to CPUfreq not being enabled and I folded the fixes into the original commits and rebase pm-opp.

Kevin