]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
uapi: update can.h
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 14 Apr 2021 02:14:34 +0000 (19:14 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 14 Apr 2021 02:14:34 +0000 (19:14 -0700)
Upstream commit to force packing on ARM OABI

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
include/uapi/linux/can.h

index d7d56e4085e257fad565403f8af1ceb8d4ca7c97..5e1d3838c5fea1f0c054923d7da1f92c38dcdd60 100644 (file)
@@ -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) */