Implement aligned LinuxKPI types for u16, u32 and u64.

Makes a difference for 32-bit platforms mostly.

MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2020-04-20 14:03:05 +00:00
parent 07fdea3672
commit fdbfa4f19e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360119

View File

@ -53,6 +53,10 @@ typedef uint32_t __be32;
typedef uint64_t __le64;
typedef uint64_t __be64;
typedef uint16_t __aligned_u16 __aligned(sizeof(uint16_t));
typedef uint32_t __aligned_u32 __aligned(sizeof(uint32_t));
typedef uint64_t __aligned_u64 __aligned(sizeof(uint64_t));
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned long ulong;