[SLOF] [PATCH v1 07/27] virtio: add virtio 1.0 capability parsing

Nikunj A Dadhania nikunj at linux.vnet.ibm.com
Tue Jan 19 15:58:28 AEDT 2016


Alexey Kardashevskiy <aik at ozlabs.ru> writes:

>
>> +
>> +#define le64 uint64_t
>> +#define le32 uint32_t
>> +#define le16 uint16_t
>
>
> I'd use:
>
> typedef __u16 __bitwise __le16;
> typedef __u16 __bitwise __be16;
> typedef __u32 __bitwise __le32;
> typedef __u32 __bitwise __be32;
> typedef __u64 __bitwise __le64;
> typedef __u64 __bitwise __be64;

Reading more about __bitwise, its more of a linux special attribute, and
not standard gcc. So will use typedef without __bitwise

>
> as include/uapi/linux/types.h does in the kernel.

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/sparse.txt



More information about the SLOF mailing list