* [PATCH] HID: sony: add missing __packed to struct with static_assert()
@ 2026-07-09 14:12 Rosalie Wanders
0 siblings, 0 replies; only message in thread
From: Rosalie Wanders @ 2026-07-09 14:12 UTC (permalink / raw)
To: Jiri Kosina, Benjamin Tissoires, Rosalie Wanders
Cc: kernel test robot, linux-input, linux-kernel
Fixes: 4b9c410e7d6d ("HID: sony: fix style issues")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202607091026.R9Pxd3PG-lkp@intel.com/
Signed-off-by: Rosalie Wanders <rosalie@mailbox.org>
---
drivers/hid/hid-sony.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c
index 253fff4066eb..b7392467191f 100644
--- a/drivers/hid/hid-sony.c
+++ b/drivers/hid/hid-sony.c
@@ -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
--
2.54.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-09 14:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-09 14:12 [PATCH] HID: sony: add missing __packed to struct with static_assert() Rosalie Wanders
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox