File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3030#ifndef __UUID_H__
3131#define UUID_SIZE 16
3232
33- typedef struct
33+ typedef struct rt_packed
3434{
3535 rt_uint8_t b [UUID_SIZE ];
3636} guid_t ;
Original file line number Diff line number Diff line change @@ -717,12 +717,12 @@ enum
717717 RT_NVME_CTRL_CTRATT_UUID_LIST = 1 << 9 ,
718718};
719719
720- struct rt_nvme_lba_format
720+ rt_packed ( struct rt_nvme_lba_format
721721{
722722 rt_le16_t ms ; /* Metadata size */
723723 rt_uint8_t ds ; /* Data size */
724724 rt_uint8_t rp ; /* Relative performance */
725- };
725+ }) ;
726726
727727rt_packed (struct rt_nvme_id_ns
728728{
Original file line number Diff line number Diff line change 1919#if __ARMCC_VERSION >= 6010050
2020#define rt_packed (declare ) declare __attribute__((packed))
2121#else
22- #define rt_packed (declare ) declare
22+ #define rt_packed (declare ) __packed declare
2323#endif
2424#define rt_weak __attribute__((weak))
2525#define rt_typeof __typeof
You can’t perform that action at this time.
0 commit comments