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

Alexey Kardashevskiy aik at ozlabs.ru
Tue Jan 19 16:04:01 AEDT 2016


On 01/19/2016 03:58 PM, Nikunj A Dadhania wrote:
> 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


Ok. I rather bothered with names than this __bitwise thingy anyway :)


>
>>
>> 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
>


-- 
Alexey


More information about the SLOF mailing list