Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fee5dfec authored by David Herrmann's avatar David Herrmann Committed by Jiri Kosina
Browse files

HID: uhid: use __packed__ for uhid_feature_answer_req



We use __packed__ for all API structures so we can extend them without
breaking alignment rules. We do try to explicitly align the structures,
but to be safe we also use __packed__.
uhid_feature_answer_req is already 64bit aligned so we can add __packed__
without breaking ABI.

Signed-off-by: default avatarDavid Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent f425458e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -86,7 +86,7 @@ struct uhid_feature_answer_req {
	__u16 err;
	__u16 err;
	__u16 size;
	__u16 size;
	__u8 data[UHID_DATA_MAX];
	__u8 data[UHID_DATA_MAX];
};
} __attribute__((__packed__));


struct uhid_event {
struct uhid_event {
	__u32 type;
	__u32 type;