linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] OMAP3: PM: Fix zoom3 defconfig build
@ 2010-04-26 13:18 Manjunatha GK
  2010-04-26 14:59 ` Nishanth Menon
  0 siblings, 1 reply; 3+ messages in thread
From: Manjunatha GK @ 2010-04-26 13:18 UTC (permalink / raw)
  To: linux-omap; +Cc: Manjunatha GK, Kevin Hilman

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'

Signed-off-by: Manjunatha GK <manjugk@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
---
 arch/arm/plat-omap/include/plat/opp.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-omap/include/plat/opp.h b/arch/arm/plat-omap/include/plat/opp.h
index dc9a0d9..6b38a20 100644
--- a/arch/arm/plat-omap/include/plat/opp.h
+++ b/arch/arm/plat-omap/include/plat/opp.h
@@ -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 {
-- 
1.6.0.4


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

* Re: [PATCH] OMAP3: PM: Fix zoom3 defconfig build
  2010-04-26 13:18 [PATCH] OMAP3: PM: Fix zoom3 defconfig build Manjunatha GK
@ 2010-04-26 14:59 ` Nishanth Menon
  2010-04-26 18:11   ` Kevin Hilman
  0 siblings, 1 reply; 3+ messages in thread
From: Nishanth Menon @ 2010-04-26 14:59 UTC (permalink / raw)
  To: Manjunatha GK; +Cc: linux-omap@vger.kernel.org, Kevin Hilman

Manjunatha GK had written, on 04/26/2010 08:18 AM, the following:
> 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.

> 
> Signed-off-by: Manjunatha GK <manjugk@ti.com>
> Cc: Kevin Hilman <khilman@deeprootsystems.com>
> ---
>  arch/arm/plat-omap/include/plat/opp.h |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/plat-omap/include/plat/opp.h b/arch/arm/plat-omap/include/plat/opp.h
> index dc9a0d9..6b38a20 100644
> --- a/arch/arm/plat-omap/include/plat/opp.h
> +++ b/arch/arm/plat-omap/include/plat/opp.h
> @@ -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 {


-- 
Regards,
Nishanth Menon

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

* Re: [PATCH] OMAP3: PM: Fix zoom3 defconfig build
  2010-04-26 14:59 ` Nishanth Menon
@ 2010-04-26 18:11   ` Kevin Hilman
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Hilman @ 2010-04-26 18:11 UTC (permalink / raw)
  To: Nishanth Menon; +Cc: Manjunatha GK, linux-omap@vger.kernel.org

Nishanth Menon <nm@ti.com> writes:

> Manjunatha GK had written, on 04/26/2010 08:18 AM, the following:
>> 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.

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

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

end of thread, other threads:[~2010-04-26 18:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-26 13:18 [PATCH] OMAP3: PM: Fix zoom3 defconfig build Manjunatha GK
2010-04-26 14:59 ` Nishanth Menon
2010-04-26 18:11   ` Kevin Hilman

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