summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorcmbjxxiao <[email protected]>2025-08-06 15:16:18 +0800
committerGitHub <[email protected]>2025-08-06 15:16:18 +0800
commit37d902537cef5d6474d7eb11221b6f647e203263 (patch)
treea05d8ae36ef863d5cf7d9f5f09c509ad5feeda45 /components
parent83909b239f14643975ef83fda070db45cedde3ec (diff)
[arm_compiler_v4/v5] define rt_packed as __packed #10553
Diffstat (limited to 'components')
-rw-r--r--components/drivers/block/partitions/efi.h5
-rw-r--r--components/drivers/include/drivers/nvme.h4
2 files changed, 5 insertions, 4 deletions
diff --git a/components/drivers/block/partitions/efi.h b/components/drivers/block/partitions/efi.h
index 6a10ec884f..10f0f584f3 100644
--- a/components/drivers/block/partitions/efi.h
+++ b/components/drivers/block/partitions/efi.h
@@ -30,10 +30,11 @@
#ifndef __UUID_H__
#define UUID_SIZE 16
-typedef struct
+rt_packed(struct _guid_t
{
rt_uint8_t b[UUID_SIZE];
-} guid_t;
+});
+typedef struct _guid_t guid_t;
#endif /* __UUID_H__ */
#ifndef __EFI_H__
diff --git a/components/drivers/include/drivers/nvme.h b/components/drivers/include/drivers/nvme.h
index 1eca5d9caa..4df2c420f9 100644
--- a/components/drivers/include/drivers/nvme.h
+++ b/components/drivers/include/drivers/nvme.h
@@ -717,12 +717,12 @@ enum
RT_NVME_CTRL_CTRATT_UUID_LIST = 1 << 9,
};
-struct rt_nvme_lba_format
+rt_packed(struct rt_nvme_lba_format
{
rt_le16_t ms; /* Metadata size */
rt_uint8_t ds; /* Data size */
rt_uint8_t rp; /* Relative performance */
-};
+});
rt_packed(struct rt_nvme_id_ns
{