net/smc: use __aligned_u64 for 64-bit smc_diag fields
authorEugene Syromiatnikov <esyr@redhat.com>
Sun, 7 Oct 2018 14:57:31 +0000 (16:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2018 04:06:28 +0000 (21:06 -0700)
commita21048c8ec7caf4def353b00b75bf75535deba80
tree3abe4d2d2008c8fe8fade2a0209900f1121351d8
parent6d4c407744dd0338da5d5d76f40dce5adabfb30a
net/smc: use __aligned_u64 for 64-bit smc_diag fields

Commit 4b1b7d3b30a6 ("net/smc: add SMC-D diag support") introduced
new UAPI-exposed structure, struct smcd_diag_dmbinfo.  However,
it's not usable by compat binaries, as it has different layout there.
Probably, the most straightforward fix that will avoid similar issues
in the future is to use __aligned_u64 for 64-bit fields.

Fixes: 4b1b7d3b30a6 ("net/smc: add SMC-D diag support")
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/smc_diag.h