]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
Fixing Alignment Error In intel smart-log-add
authorBen Reese <5884008+benreese0@users.noreply.github.com>
Tue, 3 Mar 2020 21:41:41 +0000 (13:41 -0800)
committerKeith Busch <kbusch@kernel.org>
Wed, 4 Mar 2020 01:02:18 +0000 (18:02 -0700)
commitbb958d5e21eb788e2c2a2137f4b16fa15391cb3b
tree7b67a27cc6040123cc6813d269158421189149fc
parent69b6b2873f5d43e5d5858f3705951cb27789991f
Fixing Alignment Error In intel smart-log-add

Fixing alignment in nvme_additional_smart_log_item introduced by switch
from '#pragma pack' semantics to '__attribute__((pack))'.

Per https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.html each
union or struct requires it's own '__attribute__((pack))'.

Signed-off-by: Ben Reese <5884008+benreese0@users.noreply.github.com>
plugins/intel/intel-nvme.c