xiaoxiang781216 commented on code in PR #12885:
URL: https://github.com/apache/nuttx/pull/12885#discussion_r1730553386


##########
include/nuttx/can.h:
##########
@@ -326,7 +326,7 @@ struct can_frame
   uint8_t  __pad;   /* padding */
   uint8_t  __res0;  /* reserved / padding */
   uint8_t  __res1;  /* reserved / padding */
-  uint8_t  data[CAN_MAX_DLEN] aligned_data(8);

Review Comment:
   yes, in this case, we can add the alignment attribute to the struct level, 
which is supported by most compiler.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to