]> www.infradead.org Git - users/sagi/libnvme.git/commit
ioctl: Sort members their natural size
authorDaniel Wagner <dwagner@suse.de>
Mon, 31 Jan 2022 09:43:58 +0000 (10:43 +0100)
committerDaniel Wagner <dwagner@suse.de>
Mon, 31 Jan 2022 09:49:53 +0000 (10:49 +0100)
commit4be00c8876e1697b7cb57b3b9e28cabb63aa7f56
treed4b1ebe5748c6be39f99ba737c8c04248a5b55d0
parent734e207102aea15e4b2e63962163736a145b64a7
ioctl: Sort members their natural size

Previous attempt to align the members of all *_args structure didn't
take into account that pointer types vary between 32bit and 64bit
depending the arch. The only reliable alignemnt is to sort the members
according their natural size: 64bit, pointers, 32bit, 16bit, 8bit.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
src/nvme/ioctl.h