diff options
author | Anup Patel <anup.patel@wdc.com> | 2019-01-14 14:53:52 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-01-16 11:25:25 +0530 |
commit | 4485b5cba86a2488c326c0dee9a1fec2d788b6e8 (patch) | |
tree | a8b9dbb713c54d066bdb01aa427e13d45825c6ea /include/sbi/sbi_types.h | |
parent | 924a26d82fd948318619c6645865eaa0691640f9 (diff) |
include: Add __packed define for packed structures
This patch adds __packed define for specifying packed
attribute of structures.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'include/sbi/sbi_types.h')
-rw-r--r-- | include/sbi/sbi_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sbi/sbi_types.h b/include/sbi/sbi_types.h index 136cd47..3993842 100644 --- a/include/sbi/sbi_types.h +++ b/include/sbi/sbi_types.h @@ -54,6 +54,7 @@ typedef unsigned long physical_size_t; #define NULL ((void *)0) +#define __packed __attribute__((packed)) #define __noreturn __attribute__((noreturn)) #endif |