diff options
author | Jeremy Kerr <jk@codeconstruct.com.au> | 2021-10-18 11:29:35 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-18 13:47:09 +0100 |
commit | 5a20dd46b8b8459382685969cf0f196ae9fb9766 (patch) | |
tree | cfdd5ddf4a01fefb647a9bc86044fc9839f7b904 /include | |
parent | b416beb25d9317499c823aea1522eefd8d72ea36 (diff) |
mctp: Be explicit about struct sockaddr_mctp padding
We currently have some implicit padding in struct sockaddr_mctp. This
patch makes this padding explicit, and ensures we have consistent
layout on platforms with <32bit alignmnent.
Fixes: 60fc63981693 ("mctp: Add sockaddr_mctp to uapi")
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/mctp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/mctp.h b/include/uapi/linux/mctp.h index f384962d8ff2..6acd4ccafbf7 100644 --- a/include/uapi/linux/mctp.h +++ b/include/uapi/linux/mctp.h @@ -20,10 +20,12 @@ struct mctp_addr { struct sockaddr_mctp { __kernel_sa_family_t smctp_family; + __u16 __smctp_pad0; unsigned int smctp_network; struct mctp_addr smctp_addr; __u8 smctp_type; __u8 smctp_tag; + __u8 __smctp_pad1; }; #define MCTP_NET_ANY 0x0 |