diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-12-17 07:20:43 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-01-03 04:38:24 -0500 |
commit | fee5dfecb0c74c9eab475a2a20d7a5ababe2f8e6 (patch) | |
tree | 931f19cd773d7d29e9235395b0405312e42a5a8c | |
parent | f425458eafd51b6b5ab64f407922e1198c567cb2 (diff) |
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: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | include/uapi/linux/uhid.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/uhid.h b/include/uapi/linux/uhid.h index 9c6974f16966..e9ed951e2b09 100644 --- a/include/uapi/linux/uhid.h +++ b/include/uapi/linux/uhid.h | |||
@@ -86,7 +86,7 @@ struct uhid_feature_answer_req { | |||
86 | __u16 err; | 86 | __u16 err; |
87 | __u16 size; | 87 | __u16 size; |
88 | __u8 data[UHID_DATA_MAX]; | 88 | __u8 data[UHID_DATA_MAX]; |
89 | }; | 89 | } __attribute__((__packed__)); |
90 | 90 | ||
91 | struct uhid_event { | 91 | struct uhid_event { |
92 | __u32 type; | 92 | __u32 type; |