From cc718c191b66389e192d9e243152664fa7dd2752 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 13 Apr 2021 19:14:34 -0700 Subject: [PATCH] uapi: update can.h Upstream commit to force packing on ARM OABI Signed-off-by: Stephen Hemminger --- include/uapi/linux/can.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/can.h b/include/uapi/linux/can.h index d7d56e40..5e1d3838 100644 --- a/include/uapi/linux/can.h +++ b/include/uapi/linux/can.h @@ -113,7 +113,7 @@ struct can_frame { */ __u8 len; __u8 can_dlc; /* deprecated */ - }; + } __attribute__((packed)); /* disable padding added in some ABIs */ __u8 __pad; /* padding */ __u8 __res0; /* reserved / padding */ __u8 len8_dlc; /* optional DLC for 8 byte payload length (9 .. 15) */