Author: hselasky Date: Tue May 10 11:34:22 2016 New Revision: 299361 URL: https://svnweb.freebsd.org/changeset/base/299361
Log: Add missing semicolon and properly wrap macro argument. MFC after: 1 week Sponsored by: Mellanox Technologies Modified: head/sys/compat/linuxkpi/common/include/asm/byteorder.h Modified: head/sys/compat/linuxkpi/common/include/asm/byteorder.h ============================================================================== --- head/sys/compat/linuxkpi/common/include/asm/byteorder.h Tue May 10 11:31:00 2016 (r299360) +++ head/sys/compat/linuxkpi/common/include/asm/byteorder.h Tue May 10 11:34:22 2016 (r299361) @@ -68,18 +68,18 @@ #define cpu_to_be16p(x) htobe16(*((const uint16_t *)(x))) #define be16_to_cpup(x) be16toh(*((const uint16_t *)(x))) -#define cpu_to_le64s(x) do { *((uint64_t *)x) = cpu_to_le64p((x)) } while (0) -#define le64_to_cpus(x) do { *((uint64_t *)x) = le64_to_cpup((x)) } while (0) -#define cpu_to_le32s(x) do { *((uint32_t *)x) = cpu_to_le32p((x)) } while (0) -#define le32_to_cpus(x) do { *((uint32_t *)x) = le32_to_cpup((x)) } while (0) -#define cpu_to_le16s(x) do { *((uint16_t *)x) = cpu_to_le16p((x)) } while (0) -#define le16_to_cpus(x) do { *((uint16_t *)x) = le16_to_cpup((x)) } while (0) -#define cpu_to_be64s(x) do { *((uint64_t *)x) = cpu_to_be64p((x)) } while (0) -#define be64_to_cpus(x) do { *((uint64_t *)x) = be64_to_cpup((x)) } while (0) -#define cpu_to_be32s(x) do { *((uint32_t *)x) = cpu_to_be32p((x)) } while (0) -#define be32_to_cpus(x) do { *((uint32_t *)x) = be32_to_cpup((x)) } while (0) -#define cpu_to_be16s(x) do { *((uint16_t *)x) = cpu_to_be16p((x)) } while (0) -#define be16_to_cpus(x) do { *((uint16_t *)x) = be16_to_cpup((x)) } while (0) +#define cpu_to_le64s(x) do { *((uint64_t *)(x)) = cpu_to_le64p((x)); } while (0) +#define le64_to_cpus(x) do { *((uint64_t *)(x)) = le64_to_cpup((x)); } while (0) +#define cpu_to_le32s(x) do { *((uint32_t *)(x)) = cpu_to_le32p((x)); } while (0) +#define le32_to_cpus(x) do { *((uint32_t *)(x)) = le32_to_cpup((x)); } while (0) +#define cpu_to_le16s(x) do { *((uint16_t *)(x)) = cpu_to_le16p((x)); } while (0) +#define le16_to_cpus(x) do { *((uint16_t *)(x)) = le16_to_cpup((x)); } while (0) +#define cpu_to_be64s(x) do { *((uint64_t *)(x)) = cpu_to_be64p((x)); } while (0) +#define be64_to_cpus(x) do { *((uint64_t *)(x)) = be64_to_cpup((x)); } while (0) +#define cpu_to_be32s(x) do { *((uint32_t *)(x)) = cpu_to_be32p((x)); } while (0) +#define be32_to_cpus(x) do { *((uint32_t *)(x)) = be32_to_cpup((x)); } while (0) +#define cpu_to_be16s(x) do { *((uint16_t *)(x)) = cpu_to_be16p((x)); } while (0) +#define be16_to_cpus(x) do { *((uint16_t *)(x)) = be16_to_cpup((x)); } while (0) #define swab16 bswap16 #define swab32 bswap32 _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"