include/linux/byteorder: Always defines __fswab64, __swab64p and __swab64s
PATCH v2 1/1 include/linux/byteorder: Always defines __fswab64, __swab64p and __swab64s
When __BYTEORDER_HAS_U64__ is not defined, we got warning following:
-----/tmp/include/linux/byteorder/little_endian.h: In function ?__cpu_to_be64p?:/tmp/include/linux/byteorder/little_endian.h:71:2: warning: implicit declaration of function ?__swab64p?
[-Wimplicit-function-declaration]
-----
Usually, __arch__swab64* required for __fswab64, __swab64p and __swab64s is defined. Therefore, __BYTEORDER_HAS_U64__ is unnecessary. This removes __BYTEORDER_HAS_U64__.
---
v2: Fix mail address.
include/linux/byteorder/swab.h | 2 -- 1 file changed, 2 deletions(-)
include/linux/byteorder/swab.h +0 -2
@@ -122,7 +122,6 @@ static __inline__ void __swab32s(__u32 *addr)__arch__swab32s (addr); } -#ifdef __BYTEORDER_HAS_U64__static __inline__ __attribute__((const))__u64 __fswab64 (__u64 x) {# ifdef __SWAB_64_THRU_32__
@@ -141,7 +140,6 @@ static __inline__ void __swab64s(__u64 *addr) {__arch__swab64s (addr); } -#endif /* __BYTEORDER_HAS_U64__ */ #if defined(__KERNEL__)#define swab16 __swab16
Signature · 1 line
1.7.10.4
PATCH v2 1/1 include/linux/byteorder: Always defines __fswab64, __swab64p and __swab64s
Quoted 8 lines · On Thu, 15 Nov 2012 16:35:26 +0900 Nobuhiro Iwamatsu…
When
__BYTEORDER_HAS_U64__is not defined, we got warning following:-----
/tmp/include/linux/byteorder/little_endian.h: In function ?__cpu_to_be64p?:/tmp/include/linux/byteorder/little_endian.h:71:2: warning: implicit declaration of function ?__swab64p?
[-Wimplicit-function-declaration]
-----
Quoted 8 lines
Usually, __arch__swab64* required for
__fswab64,__swab64pand__swab64sis defined. Therefore,__BYTEORDER_HAS_U64__is unnecessary. This removes__BYTEORDER_HAS_U64__.Signed-off-by Nobuhiro Iwamatsu <[email protected]>CC Kim Phillips <[email protected]>---
v2: Fix mail address.
Kim
PATCH v2 1/1 include/linux/byteorder: Always defines __fswab64, __swab64p and __swab64s
Hi, Tom.
Could you pick this patch?
Best regards,
Nobuhiro
Quoted 28 lines · Kim Phillips
Quoted 8 lines · On Thu, 15 Nov 2012 16:35:26 +0900 Nobuhiro Iwamatsu…
When
__BYTEORDER_HAS_U64__is not defined, we got warning following:-----
/tmp/include/linux/byteorder/little_endian.h: In function ?__cpu_to_be64p?:/tmp/include/linux/byteorder/little_endian.h:71:2: warning: implicit declaration of function ?__swab64p?
[-Wimplicit-function-declaration]
-----Quoted 8 lines
Usually, __arch__swab64* required for
__fswab64,__swab64pand__swab64sis defined. Therefore,__BYTEORDER_HAS_U64__is unnecessary. This removes__BYTEORDER_HAS_U64__.Signed-off-by Nobuhiro Iwamatsu <[email protected]>CC Kim Phillips <[email protected]>---
v2: Fix mail address.Reviewed-by Kim Phillips <[email protected]>Kim
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Signature · 1 line
Nobuhiro Iwamatsu
PATCH v2 1/1 include/linux/byteorder: Always defines __fswab64, __swab64p and __swab64s
In reply to Nobuhiro IwamatsuQuoted 33 lines · Nobuhiro Iwamatsu
When
__BYTEORDER_HAS_U64__is not defined, we got warning following:-----
/tmp/include/linux/byteorder/little_endian.h: In function ???__cpu_to_be64p???:/tmp/include/linux/byteorder/little_endian.h:71:2: warning: implicit declaration of function ???__swab64p???
[-Wimplicit-function-declaration]
-----Usually, __arch__swab64* required for
__fswab64,__swab64pand__swab64sis defined. Therefore,__BYTEORDER_HAS_U64__is unnecessary. This removes__BYTEORDER_HAS_U64__.Signed-off-by Nobuhiro Iwamatsu <[email protected]>CC Kim Phillips <[email protected]>---
v2: Fix mail address.include/linux/byteorder/swab.h | 2 -- 1 file changed, 2 deletions(-)include/linux/byteorder/swab.h +0
-1@@ -122,7 +122,6 @@ static __inline__ void __swab32s(__u32 *addr)__arch__swab32s (addr); } -#ifdef __BYTEORDER_HAS_U64__static __inline__ __attribute__((const))__u64 __fswab64 (__u64 x) {# ifdef __SWAB_64_THRU_32__
include/linux/byteorder/swab.h static __inline__ void __swab64s(__u64 *addr) · line 145
Quoted 7 lines
include/linux/byteorder/swab.h +0
-1@@ -141,7 +140,6 @@ static __inline__ void __swab64s(__u64 *addr) {__arch__swab64s (addr); } -#endif /* __BYTEORDER_HAS_U64__ */ #if defined(__KERNEL__)#define swab16 __swab16
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121203/05d393dc/attachment.pgp>