+ tools-add-more-endianh-macros.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: tools/include/tools/endian.h: add more macros
has been added to the -mm tree.  Its filename is
     tools-add-more-endianh-macros.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/tools-add-more-endianh-macros.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/tools-add-more-endianh-macros.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Peter Foley <pefoley2@xxxxxxxxxxx>
Subject: tools/include/tools/endian.h: add more macros

Add some more macros to tools/endian.h to allow mpssd to be compiled
against glibc < 2.9.

Signed-off-by: Peter Foley <pefoley2@xxxxxxxxxxx>
Cc: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Cc: Sudeep Dutt <sudeep.dutt@xxxxxxxxx>
Cc: Nikhil Rao <nikhil.rao@xxxxxxxxx>
Cc: Ashutosh Dixit <ashutosh.dixit@xxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 tools/include/tools/endian.h |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff -puN tools/include/tools/endian.h~tools-add-more-endianh-macros tools/include/tools/endian.h
--- a/tools/include/tools/endian.h~tools-add-more-endianh-macros
+++ a/tools/include/tools/endian.h
@@ -15,6 +15,18 @@
 #define htole64(x) (x)
 #endif
 
+#ifndef le16toh
+#define le16toh(x) (x)
+#endif
+
+#ifndef le32toh
+#define le32toh(x) (x)
+#endif
+
+#ifndef le64toh
+#define le64toh(x) (x)
+#endif
+
 #else /* __BYTE_ORDER */
 
 #ifndef htole16
@@ -27,6 +39,18 @@
 #define htole64(x) __bswap_64(x)
 #endif
 
+#ifndef le16toh
+#define le16toh(x) __bswap_16(x)
+#endif
+
+#ifndef le32toh
+#define le32toh(x) __bswap_32(x)
+#endif
+
+#ifndef le64toh
+#define le64toh(x) __bswap_64(x)
+#endif
+
 #endif
 
 #endif /* _TOOLS_ENDIAN_H */
_

Patches currently in -mm which might be from pefoley2@xxxxxxxxxxx are

linux-next.patch
tools-add-more-endianh-macros.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux