We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a8245ac + 9437cfe commit ad22d13Copy full SHA for ad22d13
can.h
@@ -37,9 +37,9 @@ typedef __u32 canid_t;
37
#define CAN_MAX_DLEN 8
38
39
struct can_frame {
40
- canid_t can_id; /* 32 bit CAN_ID + EFF/RTR/ERR flags */
41
- __u8 can_dlc; /* frame payload length in byte (0 .. CAN_MAX_DLEN) */
42
- __u8 data[CAN_MAX_DLEN] __attribute__((aligned(8)));
+ canid_t can_id; /* 32 bit CAN_ID + EFF/RTR/ERR flags */
+ __u8 can_dlc; /* frame payload length in byte (0 .. CAN_MAX_DLEN) */
+ alignas(8) __u8 data[CAN_MAX_DLEN];
43
};
44
45
#endif /* CAN_H_ */
0 commit comments