Skip to contentSkip to conversation

HID: sony: add missing __packed to struct with static_assert()

PATCH Applied Rosalie Wanders 2 participants 2 messages Jul 9 – Aug 3 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: sony: add missing __packed to struct with static_assert()

---
 drivers/hid/hid-sony.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/hid-sony.c +1 -1
index 253fff4066eb..b7392467191f 100644
@@ -505,7 +505,7 @@ struct motion_output_report_02 {
 	u8 r, g, b;
 	u8 zero2;
 	u8 rumble;
-};
+} __packed;
 static_assert(sizeof(struct motion_output_report_02) == 7);
 
 #define SIXAXIS_REPORT_0xF2_SIZE 17
Signature · 1 line
2.54.0
maintainer Applied
#1 lore raw

Applied, thanks.

Signature · 2 lines
Jiri Kosina
SUSE Labs