Patchwork [U-Boot,1/2] net: make IPaddr type big endian

login
register
mail settings
Submitter Kim Phillips
Date Jan. 17, 2013, 12:09 a.m.
Message ID <20130116180911.7a7f8bcb07c48d7b39a8677a@freescale.com>
Download mbox | patch
Permalink /patch/213104/
State Accepted
Delegated to: Joe Hershberger
Headers show

Comments

Kim Phillips - Jan. 17, 2013, 12:09 a.m.
for use with sparse.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
---
 include/net.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Joe Hershberger - July 8, 2013, 4:04 p.m.
On Wed, Jan 16, 2013 at 6:09 PM, Kim Phillips
<kim.phillips@freescale.com> wrote:
> for use with sparse.
>
> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
> Cc: Joe Hershberger <joe.hershberger@gmail.com>

Applied, Thanks.
-Joe

Patch

diff --git a/include/net.h b/include/net.h
index 970d4d1..4c5a000 100644
--- a/include/net.h
+++ b/include/net.h
@@ -39,7 +39,7 @@ 
 #define PKTALIGN	ARCH_DMA_MINALIGN
 
 /* IPv4 addresses are always 32 bits in size */
-typedef u32		IPaddr_t;
+typedef __be32		IPaddr_t;
 
 
 /**