Skip to contentSkip to conversation

SPARC: Build error fix, introduced by commit 391fd93ab23e15ab3dd58a54f5b609024009c378

PATCH New Daniel Hellstrom 2 participants 2 messages Jul 9, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SPARC: Build error fix, introduced by commit 391fd93ab23e15ab3dd58a54f5b609024009c378

This patch makes SPARC targets build again. It is caused by phys_addr_t and phys_size_t being defined in the wrong header file. include/lmb.h need those typedefs to build.

However, I will be away for holidays starting tomorrow...

Best Regards,
Daniel Hellstrom

---
 include/asm-sparc/io.h    |    1 -
 include/asm-sparc/types.h |    3 +++
 2 files changed, 3 insertions(+), 1 deletions(-)
include/asm-sparc/io.h +0 -1
index 2a27d06..ede0b1a 100644
@@ -70,7 +70,6 @@
  * that can be used to access the memory range with the caching
  * properties specified by "flags".
  */
-typedef unsigned long phys_addr_t;
 
 #define MAP_NOCACHE	(0)
 #define MAP_WRCOMBINE	(0)
include/asm-sparc/types.h +3 -0
index 69f93d6..2cf974a 100644
@@ -65,6 +65,9 @@ typedef unsigned long long u64;
 /* DMA addresses are 32-bits wide */
 typedef u32 dma_addr_t;
 
+typedef unsigned long phys_addr_t;
+typedef unsigned long phys_size_t;
+
 #endif				/* __KERNEL__ */
 #endif				/* __ASSEMBLY__ */
 
Signature · 1 line
1.5.4
#1 lore raw

PATCH 1/1 SPARC: Build error fix, introduced by commit 391fd93ab23e15ab3dd58a54f5b609024009c378

Quoted 8 lines · In message <[email protected]> you wrote:

This patch makes SPARC targets build again. It is caused by phys_addr_t and phys_size_t being defined in the wrong header file. include/lmb.h need those typedefs to build.

However, I will be away for holidays starting tomorrow...

Best Regards,
Daniel Hellstrom

Such comments should pleas ego *below* the "---" line; that would save me the time I need to manually edit such commit messages.

Quoted 6 lines
---
 include/asm-sparc/io.h    |    1 -
 include/asm-sparc/types.h |    3 +++
 2 files changed, 3 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
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
My play was a complete success.  The audience was a failure.