public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Omap3 fix compiler warnings
@ 2009-06-30 20:04 Tom Rix
  2009-06-30 20:04 ` [U-Boot] [PATCH 1/1] OMAP3 Fix compiler warning for v7_flush_dcache_all Tom Rix
  0 siblings, 1 reply; 11+ messages in thread
From: Tom Rix @ 2009-06-30 20:04 UTC (permalink / raw)
  To: u-boot


This patch is against the arm/next branch. 

This fixes OMAP3 boards building warning

cpu.c: In function 'cleanup_before_linux':
cpu.c:64: warning: implicit declaration of function 'v7_flush_dcache_all'
cpu.c:64: warning: implicit declaration of function 'get_device_type

Now OMAP3 has clean a build in MAKEALL. 

Compile tested with MAKEALL and runtested on Zoom1. 

Tom

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

* [U-Boot] [PATCH 1/1] OMAP3 Fix compiler warning for v7_flush_dcache_all
  2009-06-30 20:04 [U-Boot] Omap3 fix compiler warnings Tom Rix
@ 2009-06-30 20:04 ` Tom Rix
  2009-07-02 21:00   ` Jean-Christophe PLAGNIOL-VILLARD
  2009-07-18 20:36   ` Wolfgang Denk
  0 siblings, 2 replies; 11+ messages in thread
From: Tom Rix @ 2009-06-30 20:04 UTC (permalink / raw)
  To: u-boot

On build of omap3 targets in MAKEALL, the *.ERR files have

cpu.c: In function 'cleanup_before_linux':
cpu.c:64: warning: implicit declaration of function 'v7_flush_dcache_all'
cpu.c:64: warning: implicit declaration of function 'get_device_type

The functions v7_flush_dcache_all and get_device_type are declared
in include/asm-arm/arch-omap3/sys_proto.h, so use this file to
declare the functions.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
---
 cpu/arm_cortexa8/cpu.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/cpu/arm_cortexa8/cpu.c b/cpu/arm_cortexa8/cpu.c
index fcb5775..ab1cfc7 100644
--- a/cpu/arm_cortexa8/cpu.c
+++ b/cpu/arm_cortexa8/cpu.c
@@ -35,6 +35,9 @@
 #include <command.h>
 #include <asm/system.h>
 #include <asm/cache.h>
+#ifndef CONFIG_L2_OFF
+#include <asm/arch/sys_proto.h>
+#endif
 
 static void cache_flush(void);
 
-- 
1.6.0.4

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

* [U-Boot] [PATCH 1/1] OMAP3 Fix compiler warning for v7_flush_dcache_all
  2009-06-30 20:04 ` [U-Boot] [PATCH 1/1] OMAP3 Fix compiler warning for v7_flush_dcache_all Tom Rix
@ 2009-07-02 21:00   ` Jean-Christophe PLAGNIOL-VILLARD
  2009-07-02 21:56     ` Tom
  2009-07-18 20:36   ` Wolfgang Denk
  1 sibling, 1 reply; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2009-07-02 21:00 UTC (permalink / raw)
  To: u-boot

On 15:04 Tue 30 Jun     , Tom Rix wrote:
> On build of omap3 targets in MAKEALL, the *.ERR files have
> 
> cpu.c: In function 'cleanup_before_linux':
> cpu.c:64: warning: implicit declaration of function 'v7_flush_dcache_all'
> cpu.c:64: warning: implicit declaration of function 'get_device_type
> 
> The functions v7_flush_dcache_all and get_device_type are declared
> in include/asm-arm/arch-omap3/sys_proto.h, so use this file to
> declare the functions.
> 
> Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
> ---
>  cpu/arm_cortexa8/cpu.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/cpu/arm_cortexa8/cpu.c b/cpu/arm_cortexa8/cpu.c
> index fcb5775..ab1cfc7 100644
> --- a/cpu/arm_cortexa8/cpu.c
> +++ b/cpu/arm_cortexa8/cpu.c
> @@ -35,6 +35,9 @@
>  #include <command.h>
>  #include <asm/system.h>
>  #include <asm/cache.h>
> +#ifndef CONFIG_L2_OFF
> +#include <asm/arch/sys_proto.h>
> +#endif
>  
v7_flush_dcache_all is not omap3 specific but armv7 specific so we must no
need to depend on arch specific header

Best Regards,
J.

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

* [U-Boot] [PATCH 1/1] OMAP3 Fix compiler warning for v7_flush_dcache_all
  2009-07-02 21:00   ` Jean-Christophe PLAGNIOL-VILLARD
@ 2009-07-02 21:56     ` Tom
  2009-07-03 21:00       ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 11+ messages in thread
From: Tom @ 2009-07-02 21:56 UTC (permalink / raw)
  To: u-boot

Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 15:04 Tue 30 Jun     , Tom Rix wrote:
>   
>> On build of omap3 targets in MAKEALL, the *.ERR files have
>>
>> cpu.c: In function 'cleanup_before_linux':
>> cpu.c:64: warning: implicit declaration of function 'v7_flush_dcache_all'
>> cpu.c:64: warning: implicit declaration of function 'get_device_type
>>
>> The functions v7_flush_dcache_all and get_device_type are declared
>> in include/asm-arm/arch-omap3/sys_proto.h, so use this file to
>> declare the functions.
>>
>> Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
>> ---
>>  cpu/arm_cortexa8/cpu.c |    3 +++
>>  1 files changed, 3 insertions(+), 0 deletions(-)
>>
>> diff --git a/cpu/arm_cortexa8/cpu.c b/cpu/arm_cortexa8/cpu.c
>> index fcb5775..ab1cfc7 100644
>> --- a/cpu/arm_cortexa8/cpu.c
>> +++ b/cpu/arm_cortexa8/cpu.c
>> @@ -35,6 +35,9 @@
>>  #include <command.h>
>>  #include <asm/system.h>
>>  #include <asm/cache.h>
>> +#ifndef CONFIG_L2_OFF
>> +#include <asm/arch/sys_proto.h>
>> +#endif
>>  
>>     
> v7_flush_dcache_all is not omap3 specific but armv7 specific so we must no
> need to depend on arch specific header
>
>   
That is where they are declared.
Would you rather the declaration be moved from sys_proto.h or to declare 
them in cpu.c ?
Tom
> Best Regards,
> J.
>   

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

* [U-Boot] [PATCH 1/1] OMAP3 Fix compiler warning for v7_flush_dcache_all
  2009-07-02 21:56     ` Tom
@ 2009-07-03 21:00       ` Jean-Christophe PLAGNIOL-VILLARD
  2009-07-04 12:41         ` Tom
  0 siblings, 1 reply; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2009-07-03 21:00 UTC (permalink / raw)
  To: u-boot

On 16:56 Thu 02 Jul     , Tom wrote:
> Jean-Christophe PLAGNIOL-VILLARD wrote:
> >On 15:04 Tue 30 Jun     , Tom Rix wrote:
> >>On build of omap3 targets in MAKEALL, the *.ERR files have
> >>
> >>cpu.c: In function 'cleanup_before_linux':
> >>cpu.c:64: warning: implicit declaration of function 'v7_flush_dcache_all'
> >>cpu.c:64: warning: implicit declaration of function 'get_device_type
> >>
> >>The functions v7_flush_dcache_all and get_device_type are declared
> >>in include/asm-arm/arch-omap3/sys_proto.h, so use this file to
> >>declare the functions.
> >>
> >>Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
> >>---
> >> cpu/arm_cortexa8/cpu.c |    3 +++
> >> 1 files changed, 3 insertions(+), 0 deletions(-)
> >>
> >>diff --git a/cpu/arm_cortexa8/cpu.c b/cpu/arm_cortexa8/cpu.c
> >>index fcb5775..ab1cfc7 100644
> >>--- a/cpu/arm_cortexa8/cpu.c
> >>+++ b/cpu/arm_cortexa8/cpu.c
> >>@@ -35,6 +35,9 @@
> >> #include <command.h>
> >> #include <asm/system.h>
> >> #include <asm/cache.h>
> >>+#ifndef CONFIG_L2_OFF
> >>+#include <asm/arch/sys_proto.h>
> >>+#endif
> >v7_flush_dcache_all is not omap3 specific but armv7 specific so we must no
> >need to depend on arch specific header
> >
> That is where they are declared.
> Would you rather the declaration be moved from sys_proto.h or to
> declare them in cpu.c ?
remove this non needed dependency
and use the generic flush dcache

Best Regards,
J.

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

* [U-Boot] [PATCH 1/1] OMAP3 Fix compiler warning for v7_flush_dcache_all
  2009-07-03 21:00       ` Jean-Christophe PLAGNIOL-VILLARD
@ 2009-07-04 12:41         ` Tom
  2009-07-04 14:44           ` Jean-Christophe PLAGNIOL-VILLARD
  2009-07-05  7:21           ` Dirk Behme
  0 siblings, 2 replies; 11+ messages in thread
From: Tom @ 2009-07-04 12:41 UTC (permalink / raw)
  To: u-boot

Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 16:56 Thu 02 Jul     , Tom wrote:
>   
>> Jean-Christophe PLAGNIOL-VILLARD wrote:
>>     
>>> On 15:04 Tue 30 Jun     , Tom Rix wrote:
>>>       
>>>> On build of omap3 targets in MAKEALL, the *.ERR files have
>>>>
>>>> cpu.c: In function 'cleanup_before_linux':
>>>> cpu.c:64: warning: implicit declaration of function 'v7_flush_dcache_all'
>>>> cpu.c:64: warning: implicit declaration of function 'get_device_type
>>>>
>>>> The functions v7_flush_dcache_all and get_device_type are declared
>>>> in include/asm-arm/arch-omap3/sys_proto.h, so use this file to
>>>> declare the functions.
>>>>
>>>> Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
>>>> ---
>>>> cpu/arm_cortexa8/cpu.c |    3 +++
>>>> 1 files changed, 3 insertions(+), 0 deletions(-)
>>>>
>>>> diff --git a/cpu/arm_cortexa8/cpu.c b/cpu/arm_cortexa8/cpu.c
>>>> index fcb5775..ab1cfc7 100644
>>>> --- a/cpu/arm_cortexa8/cpu.c
>>>> +++ b/cpu/arm_cortexa8/cpu.c
>>>> @@ -35,6 +35,9 @@
>>>> #include <command.h>
>>>> #include <asm/system.h>
>>>> #include <asm/cache.h>
>>>> +#ifndef CONFIG_L2_OFF
>>>> +#include <asm/arch/sys_proto.h>
>>>> +#endif
>>>>         
>>> v7_flush_dcache_all is not omap3 specific but armv7 specific so we must no
>>> need to depend on arch specific header
>>>
>>>       
>> That is where they are declared.
>> Would you rather the declaration be moved from sys_proto.h or to
>> declare them in cpu.c ?
>>     
> remove this non needed dependency
> and use the generic flush dcache
>
>   
Ok. Will do.
Tom

> Best Regards,
> J.
>   

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

* [U-Boot] [PATCH 1/1] OMAP3 Fix compiler warning for v7_flush_dcache_all
  2009-07-04 12:41         ` Tom
@ 2009-07-04 14:44           ` Jean-Christophe PLAGNIOL-VILLARD
  2009-07-05  7:21           ` Dirk Behme
  1 sibling, 0 replies; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2009-07-04 14:44 UTC (permalink / raw)
  To: u-boot

On 07:41 Sat 04 Jul     , Tom wrote:
> Jean-Christophe PLAGNIOL-VILLARD wrote:
> >On 16:56 Thu 02 Jul     , Tom wrote:
> >>Jean-Christophe PLAGNIOL-VILLARD wrote:
> >>>On 15:04 Tue 30 Jun     , Tom Rix wrote:
> >>>>On build of omap3 targets in MAKEALL, the *.ERR files have
> >>>>
> >>>>cpu.c: In function 'cleanup_before_linux':
> >>>>cpu.c:64: warning: implicit declaration of function 'v7_flush_dcache_all'
> >>>>cpu.c:64: warning: implicit declaration of function 'get_device_type
> >>>>
> >>>>The functions v7_flush_dcache_all and get_device_type are declared
> >>>>in include/asm-arm/arch-omap3/sys_proto.h, so use this file to
> >>>>declare the functions.
> >>>>
> >>>>Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
> >>>>---
> >>>>cpu/arm_cortexa8/cpu.c |    3 +++
> >>>>1 files changed, 3 insertions(+), 0 deletions(-)
> >>>>
> >>>>diff --git a/cpu/arm_cortexa8/cpu.c b/cpu/arm_cortexa8/cpu.c
> >>>>index fcb5775..ab1cfc7 100644
> >>>>--- a/cpu/arm_cortexa8/cpu.c
> >>>>+++ b/cpu/arm_cortexa8/cpu.c
> >>>>@@ -35,6 +35,9 @@
> >>>>#include <command.h>
> >>>>#include <asm/system.h>
> >>>>#include <asm/cache.h>
> >>>>+#ifndef CONFIG_L2_OFF
> >>>>+#include <asm/arch/sys_proto.h>
> >>>>+#endif
> >>>v7_flush_dcache_all is not omap3 specific but armv7 specific so we must no
> >>>need to depend on arch specific header
> >>>
> >>That is where they are declared.
> >>Would you rather the declaration be moved from sys_proto.h or to
> >>declare them in cpu.c ?
> >remove this non needed dependency
> >and use the generic flush dcache
> >
> Ok. Will do.
tks

Best Regards,
J.

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

* [U-Boot] [PATCH 1/1] OMAP3 Fix compiler warning for v7_flush_dcache_all
  2009-07-04 12:41         ` Tom
  2009-07-04 14:44           ` Jean-Christophe PLAGNIOL-VILLARD
@ 2009-07-05  7:21           ` Dirk Behme
  1 sibling, 0 replies; 11+ messages in thread
From: Dirk Behme @ 2009-07-05  7:21 UTC (permalink / raw)
  To: u-boot

Tom wrote:
> Jean-Christophe PLAGNIOL-VILLARD wrote:
>> On 16:56 Thu 02 Jul     , Tom wrote:
>>  
>>> Jean-Christophe PLAGNIOL-VILLARD wrote:
>>>    
>>>> On 15:04 Tue 30 Jun     , Tom Rix wrote:
>>>>      
>>>>> On build of omap3 targets in MAKEALL, the *.ERR files have
>>>>>
>>>>> cpu.c: In function 'cleanup_before_linux':
>>>>> cpu.c:64: warning: implicit declaration of function 
>>>>> 'v7_flush_dcache_all'
>>>>> cpu.c:64: warning: implicit declaration of function 'get_device_type
>>>>>
>>>>> The functions v7_flush_dcache_all and get_device_type are declared
>>>>> in include/asm-arm/arch-omap3/sys_proto.h, so use this file to
>>>>> declare the functions.
>>>>>
>>>>> Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
>>>>> ---
>>>>> cpu/arm_cortexa8/cpu.c |    3 +++
>>>>> 1 files changed, 3 insertions(+), 0 deletions(-)
>>>>>
>>>>> diff --git a/cpu/arm_cortexa8/cpu.c b/cpu/arm_cortexa8/cpu.c
>>>>> index fcb5775..ab1cfc7 100644
>>>>> --- a/cpu/arm_cortexa8/cpu.c
>>>>> +++ b/cpu/arm_cortexa8/cpu.c
>>>>> @@ -35,6 +35,9 @@
>>>>> #include <command.h>
>>>>> #include <asm/system.h>
>>>>> #include <asm/cache.h>
>>>>> +#ifndef CONFIG_L2_OFF
>>>>> +#include <asm/arch/sys_proto.h>
>>>>> +#endif
>>>>>         
>>>> v7_flush_dcache_all is not omap3 specific but armv7 specific so we 
>>>> must no
>>>> need to depend on arch specific header
>>>>
>>>>       
>>> That is where they are declared.
>>> Would you rather the declaration be moved from sys_proto.h or to
>>> declare them in cpu.c ?
>>>     
>> remove this non needed dependency
>> and use the generic flush dcache
>>
>>   
> Ok. Will do.

Not sure if using generic flush dcache would be possible easily. It 
seems that there are some OMAP3 specific parts necessary. Most 
probably it's the best idea to move v7_flush_dcache_all() to 
architecture specific code (e.g. cpu/arm_cortexa8/omap3/*). The 
various A8 can then fill this function as how they need it for their 
CPU (or leave it empty).

Best regards

Dirk

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

* [U-Boot] [PATCH 1/1] OMAP3 Fix compiler warning for v7_flush_dcache_all
  2009-06-30 20:04 ` [U-Boot] [PATCH 1/1] OMAP3 Fix compiler warning for v7_flush_dcache_all Tom Rix
  2009-07-02 21:00   ` Jean-Christophe PLAGNIOL-VILLARD
@ 2009-07-18 20:36   ` Wolfgang Denk
  2009-07-19  6:25     ` Dirk Behme
  1 sibling, 1 reply; 11+ messages in thread
From: Wolfgang Denk @ 2009-07-18 20:36 UTC (permalink / raw)
  To: u-boot

Dear Tom Rix,

In message <1246392253-8431-2-git-send-email-Tom.Rix@windriver.com> you wrote:
> On build of omap3 targets in MAKEALL, the *.ERR files have
> 
> cpu.c: In function 'cleanup_before_linux':
> cpu.c:64: warning: implicit declaration of function 'v7_flush_dcache_all'
> cpu.c:64: warning: implicit declaration of function 'get_device_type
> 
> The functions v7_flush_dcache_all and get_device_type are declared
> in include/asm-arm/arch-omap3/sys_proto.h, so use this file to
> declare the functions.
> 
> Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
> ---
>  cpu/arm_cortexa8/cpu.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Software suppliers are trying to make their  software  packages  more
``user-friendly''.  .  .  .  Their best approach, so far, has been to
take all the old brochures, and stamp the words, ``user-friendly'' on
the cover.                                               - Bill Gates

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

* [U-Boot] [PATCH 1/1] OMAP3 Fix compiler warning for v7_flush_dcache_all
  2009-07-18 20:36   ` Wolfgang Denk
@ 2009-07-19  6:25     ` Dirk Behme
  2009-07-19  8:55       ` Wolfgang Denk
  0 siblings, 1 reply; 11+ messages in thread
From: Dirk Behme @ 2009-07-19  6:25 UTC (permalink / raw)
  To: u-boot

Dear Wolfgang,

Wolfgang Denk wrote:
> Dear Tom Rix,
> 
> In message <1246392253-8431-2-git-send-email-Tom.Rix@windriver.com> you wrote:
>> On build of omap3 targets in MAKEALL, the *.ERR files have
>>
>> cpu.c: In function 'cleanup_before_linux':
>> cpu.c:64: warning: implicit declaration of function 'v7_flush_dcache_all'
>> cpu.c:64: warning: implicit declaration of function 'get_device_type
>>
>> The functions v7_flush_dcache_all and get_device_type are declared
>> in include/asm-arm/arch-omap3/sys_proto.h, so use this file to
>> declare the functions.
>>
>> Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
>> ---
>>  cpu/arm_cortexa8/cpu.c |    3 +++
>>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> Applied, thanks.

Many thanks!

I'm not sure, Tom will have the details, but there might be a newer 
version of this patch?

http://lists.denx.de/pipermail/u-boot/2009-July/055543.html
http://lists.denx.de/pipermail/u-boot/2009-July/055544.html

Best regards

Dirk

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

* [U-Boot] [PATCH 1/1] OMAP3 Fix compiler warning for v7_flush_dcache_all
  2009-07-19  6:25     ` Dirk Behme
@ 2009-07-19  8:55       ` Wolfgang Denk
  0 siblings, 0 replies; 11+ messages in thread
From: Wolfgang Denk @ 2009-07-19  8:55 UTC (permalink / raw)
  To: u-boot

Dear Dirk Behme,

In message <4A62BC56.1060800@googlemail.com> you wrote:
> 
> >> The functions v7_flush_dcache_all and get_device_type are declared
> >> in include/asm-arm/arch-omap3/sys_proto.h, so use this file to
> >> declare the functions.
...
> > Applied, thanks.
...
> I'm not sure, Tom will have the details, but there might be a newer 
> version of this patch?

Yes, there is. I expect it to go in through the ARM  repository.  The
part  I  pulled  (adding  "#include  <asm/arch/sys_proto.h>"  for the
needed prototypes) is  still  valid  though:  it  fixes  the  current
problem with the mainline code, and does not conflict with the future
change coming (later?) from ARM either.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
C++ is the best example of second-system effect since OS/360.

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

end of thread, other threads:[~2009-07-19  8:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-30 20:04 [U-Boot] Omap3 fix compiler warnings Tom Rix
2009-06-30 20:04 ` [U-Boot] [PATCH 1/1] OMAP3 Fix compiler warning for v7_flush_dcache_all Tom Rix
2009-07-02 21:00   ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-02 21:56     ` Tom
2009-07-03 21:00       ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-04 12:41         ` Tom
2009-07-04 14:44           ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-05  7:21           ` Dirk Behme
2009-07-18 20:36   ` Wolfgang Denk
2009-07-19  6:25     ` Dirk Behme
2009-07-19  8:55       ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox